I've tried setting the angular velocity of a Physijs.BoxMesh to several values below 1, and unless I set it to 1, the rotation "stalls out" after a few seconds:
_model.mesh.setAngularVelocity(
new THREE.Vector3( 0.03, 0.03, 0 )
);
I tried 0.2, 0.4, 0.8 etc -- but the only way it persists is if I set some rotation value above 1. Is there something going on with precision here? Another odd thing is that the amount of time it takes to stall out is not consistent. Sometimes it's in about 1 second, other times it spins slowly for ~10 seconds before stopping. Other objects continue to animate and the rest of the scene is unaffected.
I've tried setting the angular velocity of a
Physijs.BoxMesh
to several values below 1, and unless I set it to 1, the rotation "stalls out" after a few seconds:I tried 0.2, 0.4, 0.8 etc -- but the only way it persists is if I set some rotation value above 1. Is there something going on with precision here? Another odd thing is that the amount of time it takes to stall out is not consistent. Sometimes it's in about 1 second, other times it spins slowly for ~10 seconds before stopping. Other objects continue to animate and the rest of the scene is unaffected.
The code can be tested out here: http://starsandcrafts.org/server/ Source code here https://github.com/jywarren/starsandcrafts/blob/master/src/things/StarsAndCrafts.Model.js#L46
I love this library! Thanks in advance if anyone can help me figure this out.