Combine quaternion for connected limbs

Hello everyone!!! I want to animate a human model with data provided by a set of sensors. The data are provided as quaternions. My problem is about how to combine quaternion for those bones that are connected to another one, when the first one is moved. I explain better: in my model the skeleton is formed by bones and for example the bones of the limbs are connected to the bone of the torso. When I apply a transformation to rotate the torso, the limbs follow its movement. If I would apply a transformation also to the limbs, I should compute the relative quaternion of the movements of the limbs with respect to movements to the torso. Can anyone tell me how is it possible?? Which is the mathematical formula to compute this relative quaternion??

Thank you!! :wink: :wink:

Hello Mathias, I am sure this topic will help you.


You should anyway have a look at this as well: http://davidb.github.io/sandbox_wiki_jme/tutorials/math/assets/fallback/index.html

Spend some time familiarising yourself with Quaternion math, google some tutorials or explanation videos (nothing jme related). Once you think you understand quaternions (let’s face it, nobody really understands them) your life will become that much easier, otherwise you will be bumping around in the dark the rest of your project.

Hello, this link is broken, can you provide a new one?

https://wiki.jmonkeyengine.org/tutorials/math/assets/fallback/index.html