# Failed to update position vector in some timing when using havok

**URL:** <https://forum.babylonjs.com/t/failed-to-update-position-vector-in-some-timing-when-using-havok/61947>\
**Category:** Questions\
**Tags:** havok\
**Created:** [December 29, 2025, 7:33am UTC](https://forum.babylonjs.com/t/failed-to-update-position-vector-in-some-timing-when-using-havok/61947 "2025-12-29T07:33:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanpopo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/tanpopo/32/32025_2.png) [@tanpopo](https://forum.babylonjs.com/u/tanpopo)\
**Post date:** [December 29, 2025, 7:33am UTC](https://forum.babylonjs.com/t/failed-to-update-position-vector-in-some-timing-when-using-havok/61947/1 "2025-12-29T07:33:47Z")

</div>

playground: [https://playground.babylonjs.com/#E9R16H#3](https://playground.babylonjs.com/#E9R16H#3)

If I update position vector in after render call back or just sync, there will be some case that position can’t update. Now I get rid of this by setting body’s disableSync to true manually as a temp solution.

I believe the question occurs when getting `bodyTransform` in function `syncTransform`, but I cant debugger further.

---

<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:** [December 29, 2025, 10:22am UTC](https://forum.babylonjs.com/t/failed-to-update-position-vector-in-some-timing-when-using-havok/61947/2 "2025-12-29T10:22:55Z")

</div>

cc @Cedric, but please be patient as most of the team members are currently on vacation.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [December 29, 2025, 5:56pm UTC](https://forum.babylonjs.com/t/failed-to-update-position-vector-in-some-timing-when-using-havok/61947/3 "2025-12-29T17:56:30Z")

</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:** [January 5, 2026, 1:27pm UTC](https://forum.babylonjs.com/t/failed-to-update-position-vector-in-some-timing-when-using-havok/61947/4 "2026-01-05T13:27:00Z")

</div>

disableSync to true means no update of mesh/scene graph transform from the physics. So the node translation/orientation is not overwritten by the physics.

Can you please try to make a small repo? I’m not sure to fully understand.

---

<div class="post-metadata">

**Author:** ![tanpopo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/tanpopo/32/32025_2.png) [@tanpopo](https://forum.babylonjs.com/u/tanpopo)\
**Post date:** [January 6, 2026, 2:11am UTC](https://forum.babylonjs.com/t/failed-to-update-position-vector-in-some-timing-when-using-havok/61947/5 "2026-01-06T02:11:17Z")

</div>

Sorry I dont make myself clear. In the origin pg (#1, in document), transforms’ positions are updated in onBeforeRenderObservable and works well. In my playground, I try to update transforms’ positions in onAfterRenderObservable or in sync and did not change anything else, but failed.

I was wondering if it is expected we can only update position of disableSync to true bodies in beforeRender but not afterRender nor in sync?

---

<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:** [January 8, 2026, 8:10am UTC](https://forum.babylonjs.com/t/failed-to-update-position-vector-in-some-timing-when-using-havok/61947/6 "2026-01-08T08:10:51Z")

</div>

Sorry, for the delay. I’ll get back working on this asap.
