I am trying to load and render some rigged models using Assimp 3.1.1 So I have the aiBone's identified in the hierarchy of aiNode's. For each aiBone, I have its transformation (TRS) w.r.t. to the parent.
My question is, how can I determine the length of each bone? Assuming a connected skeleton, this is not a problem for most of the bones, except for the leaf bones. Assuming I have the following skeleton structure: b0 --> b1 --> b2 with b0 being the root bone and b2 being the leaf bone. How can I know the length of b2 (since I only have its transformation w.r.t. b1)?
Thanks!