# Positioning issues with gizmos attached to bones

**URL:** <https://forum.babylonjs.com/t/positioning-issues-with-gizmos-attached-to-bones/49594>\
**Category:** Questions\
**Created:** [April 12, 2024, 1:13pm UTC](https://forum.babylonjs.com/t/positioning-issues-with-gizmos-attached-to-bones/49594 "2024-04-12T13:13:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chad\_Lee](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/chad_lee/32/38732_2.png) [@Chad\_Lee](https://forum.babylonjs.com/u/Chad_Lee)\
**Post date:** [April 12, 2024, 1:13pm UTC](https://forum.babylonjs.com/t/positioning-issues-with-gizmos-attached-to-bones/49594/1 "2024-04-12T13:13:48Z")

</div>

I am creating a feature that allows you to attach a gizmo to a bone and rotate it.  
The implementation is to attach a mesh to the bone, click on the attached mesh and the rotation gizmo will attach the bone with the attached mesh to the **RotationGizmo.**

I load the initial model and it works as I thought it would, but when I attach a position gizmo to the character mesh to move it around and then try to use the **Rotationgizmo** on the bone, the **PositionGizmo** is created at the position where the character was at the beginning.  
Here is the related PG.

> **[Babylon.js Playground](https://playground.babylonjs.com//#CN4KJL%23187)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

It will be generated as shown in the below capture.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/a/2/a230ba4500be7c3ecc990607d1e50aea365ac4f6.jpeg)

There are two meshes in the model, but to move them together, I created a **TranfromNode** as the parent and registered the meshes as children.  
Is this a problem?

The red spheres on the bones are all moving and the position of the bones are also changing according to PositionGizmo, but what could be the problem?

Please help.

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [April 12, 2024, 4:12pm UTC](https://forum.babylonjs.com/t/positioning-issues-with-gizmos-attached-to-bones/49594/2 "2024-04-12T16:12:29Z")

</div>

cc @Cedric

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [April 12, 2024, 4:12pm UTC](https://forum.babylonjs.com/t/positioning-issues-with-gizmos-attached-to-bones/49594/3 "2024-04-12T16:12:54Z")

</div>



---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [April 12, 2024, 4:18pm UTC](https://forum.babylonjs.com/t/positioning-issues-with-gizmos-attached-to-bones/49594/4 "2024-04-12T16:18:36Z")

</div>

There is an additionalTransformNode that can help for that task

[https://doc.babylonjs.com/typedoc/classes/BABYLON.PositionGizmo#additionalTransformNode](https://doc.babylonjs.com/typedoc/classes/BABYLON.PositionGizmo#additionalTransformNode)

and fixed in the PG:

> **[Babylon.js Playground](https://playground.babylonjs.com//#CN4KJL%23188)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [April 12, 2024, 4:32pm UTC](https://forum.babylonjs.com/t/positioning-issues-with-gizmos-attached-to-bones/49594/5 "2024-04-12T16:32:45Z")

</div>


