# How to set the direction of a bone

**URL:** <https://forum.babylonjs.com/t/how-to-set-the-direction-of-a-bone/21809>\
**Category:** Questions\
**Created:** [June 21, 2021, 4:53am UTC](https://forum.babylonjs.com/t/how-to-set-the-direction-of-a-bone/21809 "2021-06-21T04:53:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ynnek](https://avatars.discourse-cdn.com/v4/letter/y/c68b51/32.png) [@ynnek](https://forum.babylonjs.com/u/ynnek)\
**Post date:** [June 21, 2021, 4:53am UTC](https://forum.babylonjs.com/t/how-to-set-the-direction-of-a-bone/21809/1 "2021-06-21T04:53:04Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [June 21, 2021, 9:08am UTC](https://forum.babylonjs.com/t/how-to-set-the-direction-of-a-bone/21809/2 "2021-06-21T09:08:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ynnek](https://avatars.discourse-cdn.com/v4/letter/y/c68b51/32.png) [@ynnek](https://forum.babylonjs.com/u/ynnek)\
**Post date:** [June 21, 2021, 10:02am UTC](https://forum.babylonjs.com/t/how-to-set-the-direction-of-a-bone/21809/3 "2021-06-21T10:02:46Z")

</div>

Thanks for your help! 🙂
