Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

olan

Bones & Constrains

This topic is 5474 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have read an article "Advanced Character Physic" by Thomas Jakobsen. I''d like to use spring based àpproach for IK for characters animation (especially for RagDoll). But for skinning I must to use hierarchy of matrixes as bones. How can I combine them in one framework ?

Share this post


Link to post
Share on other sites
Advertisement
that''s one of the major omissions in the paper. Since I haven''t implemented it, I can''t help you for sure, but I''d say, calculate the quaternion/matrix between the orientation of the stick the previous frame, and the orientation of the stick the current frame, and rotate the bone with this quaternion/matrix.

There are functions on the net that takes two vectors as an input and return the transformation matrix.

Basically, cross product the two vectors, that will give you the axis of rotation. Dot product them, and that will give you the cos of angle between the two vectors. Then it''s a RotateAroundAxis(acos(dir1_dot_dir2), dir1.Cross(dir2).UnitVector()) kind of function.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!