# Havok Animation bug

**URL:** <https://forum.babylonjs.com/t/havok-animation-bug/54251>\
**Category:** Bugs\
**Created:** [October 21, 2024, 2:26am UTC](https://forum.babylonjs.com/t/havok-animation-bug/54251 "2024-10-21T02:26:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![274199875](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/274199875/32/39357_2.png) [@274199875](https://forum.babylonjs.com/u/274199875)\
**Post date:** [October 21, 2024, 2:26am UTC](https://forum.babylonjs.com/t/havok-animation-bug/54251/1 "2024-10-21T02:26:03Z")

</div>

bug demo url

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

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/c/a/cad917bb403ce78ff616bdbca74caf90e030e4e2.png)

i want box Animation rotation  
sphere Affected by rotation

---

<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:** [October 21, 2024, 9:22am UTC](https://forum.babylonjs.com/t/havok-animation-bug/54251/2 "2024-10-21T09:22:03Z")

</div>

cc @Cedric, I don’t know how to achieve this effect.

---

<div class="post-metadata">

**Author:** ![qq2315137135](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/qq2315137135/32/32219_2.png) [@qq2315137135](https://forum.babylonjs.com/u/qq2315137135)\
**Post date:** [October 21, 2024, 9:43am UTC](https://forum.babylonjs.com/t/havok-animation-bug/54251/3 "2024-10-21T09:43:34Z")

</div>

You should use:

```js
  moveMeshBox.physicsBody.setPrestepType(BABYLON.PhysicsPrestepType.ACTION)

```

This will cause the animated physics body to generate velocity, rather than “teleporting.”

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

see line 84

* * *

---

<div class="post-metadata">

**Author:** ![274199875](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/274199875/32/39357_2.png) [@274199875](https://forum.babylonjs.com/u/274199875)\
**Post date:** [October 21, 2024, 9:49am UTC](https://forum.babylonjs.com/t/havok-animation-bug/54251/4 "2024-10-21T09:49:10Z")

</div>

Thank you
