Bullet Physics: No Angular Motion...?

In Bullet, is it possible to have a rigid body be entirely incapable of rotation?

(I’m aware of angular damping–but while that helps, it doesn’t prevent all rotation: certain cases can nevertheless result in rotations–even when the damping factor is set to “math.inf”, it seems.)

To explain: I’m working on a game that involves dice, and I want the player to be able to move them about. This much is working.

However, once a die has been rolled, I want to keep its rolled face upwards. And when moving the dice into positions that cause physical interactions, they sometimes end up rotating in response.

Does anyone know how–or whether–this might be done…?

I do it this way.

body.set_angular_factor(False)

Aah, that does sound right! (I was starting to think that I might have to use constraints!) Thank you for that! :slight_smile: