# Rotate around pivot, in obj file

**URL:** https://forum.babylonjs.com/t/rotate-around-pivot-in-obj-file/53853
**Category:** Questions
**Created:** [October 1, 2024, 12:39am UTC](https://forum.babylonjs.com/t/rotate-around-pivot-in-obj-file/53853 "2024-10-01T00:39:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bitmo\_games](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bitmo_games/32/37337_2.png) [@bitmo\_games](https://forum.babylonjs.com/u/bitmo_games)
#### Post date: [October 1, 2024, 12:39am UTC](https://forum.babylonjs.com/t/rotate-around-pivot-in-obj-file/53853/1 "2024-10-01T00:39:18Z")

</div>

I need rotate “_ **wing** _” around of specific pivot point, as pivot i am using a second “mesh” pivot is son of father (antena body) and wing is son of pivot, so, why both child have same pivot (_wing is supposed to rotate using the “pivot” pivot_)

_I suppose it is not necessary to use a mesh for the pivot, but how do I do it then?_

 ![erty](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/d/5/d5ecf365c07ee4369839f813c181575074296b1d.jpeg)

(with GKB works fine, but unfortunately i can not use GLB files)

here is the PLayground with model loaded:

> **[Babylon.js Playground](https://playground.babylonjs.com/#7OLIMH%237)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 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: [October 1, 2024, 10:23am UTC](https://forum.babylonjs.com/t/rotate-around-pivot-in-obj-file/53853/2 "2024-10-01T10:23:05Z")

</div>

You don’t need pivot for that.  
With an origin (0,0,0) at the base of the antenna, then parent the antenna to the body and set a local rotation + translation to the antenna.

see the gizmo here:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/6/5/6568e66a7ace94edc2eded625c0d5b33ef8aee40.png)

recenter the mesh so the antena rotation axis passes through the origin.

---

<div class="post-metadata">

### Author: ![bitmo\_games](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bitmo_games/32/37337_2.png) [@bitmo\_games](https://forum.babylonjs.com/u/bitmo_games)
#### Post date: [October 1, 2024, 1:14pm UTC](https://forum.babylonjs.com/t/rotate-around-pivot-in-obj-file/53853/3 "2024-10-01T13:14:16Z")

</div>

Thanks, solved :
