Sign in to follow this  
gOOze55

Simple IK, analytic solver in 3D

Recommended Posts

Hi, I am currently trying to implement a "simple" analytic IK solver to compute the position of a knee in a simple 2 bone system (Thigh / Calf). I have found many example of such solver in 2D on the Internet but nothing in 3D... For example the analytic case here: http://cose.math.bas.bg/Sci_Visualization/compAnim/animation/rick_parent/Modl.html I would like to stay away from more complex methods and numerical solvers (Jacobian, CCD...). My idea is actually a foot placement system, and I need IK to compute the new knee angle once I knew where the foot should be. Has anyone already seen this kind of thing with an example to understand how to move from a 2D to a 3D problem? Thanks.

Share this post


Link to post
Share on other sites
Read my response here: http://www.gamedev.net/community/forums/viewreply.asp?ID=3446115

Oh, very sorry, didnt see the part about 3D.

Vector C will just be in 3d. The blue and red angles will be computed in the plane that makes up the 3 segements, which is a 2d problem then.

The purple angle will be result in polar angles, rather than a single angle from atan2. So you'll need a cartesian to polar conversion there.

That is if you want to use euler angles. You could just construct the pink angle as a matrix or quaternion, creating the transformation from the pelvic to the plane in which the blue and red angles lay.

Not very much different.

Share this post


Link to post
Share on other sites

Thank you both for your answers. The code from Ken Perlin will surely help. I think I'm going to use the same method, using the x axis as he does and then translate the results back to where my model is.

Thanks ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this