Locking the rotation axis when using Physics

Is it possible to lock a specific rotation axis when using Havok Physics? Does it have the same as in Unity where you can lock the z axis to avoid rotating it forward when an object collides.

Hello and welcome to the Babylon community! You can lock individual axis using the 6DoF constraint: Physics6DoFConstraint | Babylon.js Documentation (babylonjs.com)

1 Like

Have a look at this thread: "moveWithCollisions" with havoc? - #12 by aWeirdo
Setting some axis of the inertia to zero should be the same as locking an axis by multiplying the same axis by zero, as other physics engines do. At least I think so :stuck_out_tongue: