Freezing rotation for Physics imposter (similar to unity)

With ammojs, you can call setAngularFactor on the ammojs body. a value of 0 mean rotations are frozen.
something like:

mymesh.physicsImpostor._physicsBody.setAngularFactor(new Ammo.btVector3(0,0,0));
2 Likes