# CCD IK is Jerky and sometimes spazzy

No replies to this topic

### #1bearsomg

New Member

• Members
• 4 posts

Posted 27 August 2012 - 11:00 PM

Hello. I am writing an IK solver for a 3D rendering engine that I am designing. My solver works correctly for the most part, but sometimes it will make the animation look jerky or completely spazz out (this usually happens when the joints have to bend over each other more).

This is my solver function: http://pastebin.com/K1UZf0D5

The UpdateIK() function uses this algorithm to update the bone's combined transform:

D3DXMatrixRotationQuaternion(&combTrans, &combRot);
combTrans(3,0) = translate(3,0) + offset.x;
combTrans(3,1) = translate(3,1) + offset.y;
combTrans(3,2) = translate(3,2) + offset.z;
if (_parent)
combTrans *= _parent->getCombinedTrans();



Here is a video example of how the IK will be jerky or spazz out. Look at the left leg. The video is the model's bone structure.

#### 1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users