I'm drawing a 3D stick figure for an Android app using Libgdx and its ModelBuilder's createCylinder() and createBox() methods. In the render method I animate it by applying translations and rotations to specific limbs (waving hello, kicking, etc).
While I have that all working, when I attempt to translate the whole figure to a new x y z position (by adding the current x's, y's, and z's by the delta of the new ones), the position of any limb that has rotation are off. It comes out looking like it entered a Star Trek transporter and came out disconnected on the other side. Look like it's been torn apart. Quite frightening.
I feel like there is a better way to draw a skeleton. Is there a way to associate all the body parts together? Almost like adding joints (knees, elbows, etc). Something that connects 2 shapes together, so that when one is translated, the other follows without having to manually do all the math on the other one? Or maybe some way of treating my all the shapes as 1 single model?
Is there a concept for this? If not, how is this type of thing often done (aside from using 3D modeling applications)?