#Fabrik Leg IK World Space to Object Space

1 messages · Page 1 of 1 (latest)

rocky bough
#

Hey everyone,

While making a quadruped leg IK. I found out that bones have a woldCFrame. I use this to make a comparison of the distance between the target (different CFrame) and the bone I want to move.

The problem is that I do not believe I can set the bone's worldCFrame. Does this mean I need to make the calculations for each bone down the bone chain until I get the one I want or is there something else I can use to make this calculation.

P.S. I have already tried :ToObjectSpace(). This generates the wrong numbers from the CFrame.

Thanks!

marsh haven
#

Convert the Target's CFrame to local space, then perform IK calculations and then update bone positions

rocky bough
#

Okay, so ya the conversion does have to be done manually

#

thank you

#

Oh, I go from target to bone because then I only have to do it once!

random jay