TheComet / ik

Minimal Inverse Kinematics library
MIT License
488 stars 70 forks source link

How work "eff->target_position"? #13

Closed Mikez2015 closed 3 years ago

Mikez2015 commented 3 years ago

Please help me, I cannot understand how the effector position works. For example, if I want to place child3 in world coordinates (30,30,0), what coordinates should I set for the effector?

ik

Mikez2015 commented 3 years ago

I tried to set eff->target_position = ik.vec3.vec3(-100,0,0); and got such incomprehensible results: ik2

I expected the whole line to stretch in the negative x-direction, but it didn't.

Mikez2015 commented 3 years ago

Solved.

Jerryzhangzhao commented 3 years ago

Solved.

Hi, how do you solve that, I met exactly the same problem!