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));
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));