# Cannon physics body and my model loaded from glb file was not syncing properly

**URL:** <https://discourse.threejs.org/t/cannon-physics-body-and-my-model-loaded-from-glb-file-was-not-syncing-properly/53731>\
**Category:** Questions\
**Tags:** loaders\
**Created:** [July 11, 2023, 12:20pm UTC](https://discourse.threejs.org/t/cannon-physics-body-and-my-model-loaded-from-glb-file-was-not-syncing-properly/53731 "2023-07-11T12:20:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)\
**Post date:** [July 11, 2023, 7:50pm UTC](https://discourse.threejs.org/t/cannon-physics-body-and-my-model-loaded-from-glb-file-was-not-syncing-properly/53731/2 "2023-07-11T19:50:14Z")

</div>

Honest to Ogar, I read this like 3 times and still have no idea what is going on - short sentences and interpunction are the unsung heroes of this world 🥲

From the parts my questionable Engels allowed me to begrijp:

> [@prithiviraj\_ramesh](#):
>
> […] it’s not syncing with the positions correctly […]

1. Then add / subtract from the positions after syncing but before rendering the next frame. There’s no penalty for doing that (and I’d get used to this practice, sooner or later you’ll cross paths with FBX armature animations - tweaking these rotations manually will become your only hope and friend.)

* * *

> [@prithiviraj\_ramesh](#):
>
> […] is facing the x-axis, the car model is facing the z-axis […]

1. Same as above:

```js
// NOTE Sync three object with cannon
carModel.position.copy(carBody.position);
carModel.quaternion.copy(carBody.quaternion);

// NOTE Adjust rotations
carModel.rotateY(-Math.PI / 2.0);

```

Keep in mind that in cannon everything is in world-space coordinates. Cannon doesn’t have parent-children structure like three (the only way to connect bodies is via joins, and that doesn’t involve parent-child matrix updates), so it’s always a good idea to move all your three objects to `scene.children` directly - and only then sync position and orientation with their cannon bodies.

* * *

> [@prithiviraj\_ramesh](#):
>
> […] car model is slightly up from the surface […]

1. Just move it down.

---

_[View the full topic](https://discourse.threejs.org/t/cannon-physics-body-and-my-model-loaded-from-glb-file-was-not-syncing-properly/53731)._
