jsantell / THREE.IK

inverse kinematics for three.js
https://jsantell.github.io/THREE.IK
MIT License
455 stars 54 forks source link

setZForward() modifies mesh pose #17

Closed crazyquark closed 5 years ago

crazyquark commented 5 years ago

Hello,

I've been trying to use THREE.IK with my own GLTF mesh and did find the setZForward solution but I think the problem is that while rotating the bones it changes the original pose. I think there should be a way to unbind bones/ reorient/ rebind.

My mesh is rotated at the end of setZForward as the bones themselves get rotated...

Looks like SkinnedMesh.pose() might be needed after bind()...

crazyquark commented 5 years ago

For my needs, calling SkinnedMesh.pose() after bind() seems to have fixed the issue.