reactphysics3d icon indicating copy to clipboard operation
reactphysics3d copied to clipboard

Limit rigid body rotation on specific axis

Open aliasdevelopment opened this issue 6 years ago • 1 comments

I am experimented with a dynamic rigid body as a character controller. It seems that setting setAngularVelocity to 0.0 and setInertiaTensorLocal to identity matrix each tick does not limit the rotation of a capsule. It slowly rotate onto its side.

Do you have an idea how to limit a rigid body on specific axis?

aliasdevelopment avatar Jan 09 '20 20:01 aliasdevelopment

Setting the inertiaTensorLocal to identity does not limit rotation on single axis. It is currently not possible to do this. I still need to implement this feature as you can see in issue #21.

DanielChappuis avatar Jan 10 '20 09:01 DanielChappuis