Jump to content
  • Advertisement
Sign in to follow this  
jeffkingdev

CCD IK

This topic is 2662 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

Can someone please explain the idea of CCD Inverse Kinematics?

Let's say I have a chain like this....


(Root) (link 1) (link 2) (link 3) (link 4) (end )

Then I want to point the end towards a Target. What's the process?

Do I do something like this...

point at end
- rotate point towards target
- point = point->Parent();

???

I tried looking at some examples online, but I don't get how rotating from the end would get you the end result. Also, all the examples seem to figure out the end product rotations in 1 frame, as opposed to a game where you would want to continuously rotate 60 fps, or such.

Any visual help on this works would be wonderful for me.

Thanks
Jeff.

Share this post


Link to post
Share on other sites
Advertisement
You don't rotate each joint to point to the target, you make an invisible line from the target to the current bone, then rotate the current bone enough so that the end bone is now touching that invisible line.

http://www.ryanjuckett.com/programming/animation/21-cyclic-coordinate-descent-in-2d?start=2

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!