How to set the direction of a bone

Hi all,
I got to know how to get the direction of a bone. (with Bone.getDirection())
And now, I’m trying to change the direction.
But I couldn’t find any method to do this work…
So can anyone help me to find the way to set the direction of a bone?
Thanks in advance :slight_smile:

Welcome aboard!

You can’t change the direction (the bone has no direction, what you get when calling getDirection is the transformation by the bone matrix of the vector3 passed in), you must set translation/rotation transforms of the bone instead.

2 Likes

Thanks for your help! :slight_smile: