Armature bone orientations from physics joints
Posted: Wed Jun 29, 2011 12:18 am
Hey Norbo / all,
I'm in the process of trying to rig up a ragdoll to an xbox live avatar - my plan was to manipulate the orientations of particular bones in the avatar's bind pose to match the orientations of joints that are modeled in the ragdoll (which won't be all of them - not gonna bother with fingers, etc.).
I'm creating the ragdoll entities and joints to match the bind pose - but I kinda hit the limits of my knowledge with how to extract the right orientations from those. For example the shoulders are a couple of BallSocketJoints - I can see there's a GetAngularJacobian() method that probably has the info I want in some form, but I get the feeling from initial web searches that I might need a lot of linear algebra studying before I understand what a Jacobian is.
So I thought I'd be lazy and ask here first - is there an easy way to extract an orientation matrix or quaternion to transform, say, an upper arm from its initial bind pose orientation to its current orientation?
Thanks!
-Luke
I'm in the process of trying to rig up a ragdoll to an xbox live avatar - my plan was to manipulate the orientations of particular bones in the avatar's bind pose to match the orientations of joints that are modeled in the ragdoll (which won't be all of them - not gonna bother with fingers, etc.).
I'm creating the ragdoll entities and joints to match the bind pose - but I kinda hit the limits of my knowledge with how to extract the right orientations from those. For example the shoulders are a couple of BallSocketJoints - I can see there's a GetAngularJacobian() method that probably has the info I want in some form, but I get the feeling from initial web searches that I might need a lot of linear algebra studying before I understand what a Jacobian is.
So I thought I'd be lazy and ask here first - is there an easy way to extract an orientation matrix or quaternion to transform, say, an upper arm from its initial bind pose orientation to its current orientation?
Thanks!
-Luke