An exception occurred when getting the rotation property of an object.
I’m using Ammo.js as the physics engine and creating a vehicle,. I’m trying to get the body rotation attributes around the y-axis and output them in the console.
I found that the output value is between-PI/2~PI/2, and the value of the rotation property decreases when the PI/2 is reached, and the value of the rotation property increases when the-PI/2 is reached.
To test, I created another mesh, and assigned a value to it using the rotation of vehicle’s body. The exception is shown in the following video:
Video_20201210115858.wmv (1.7 MB)
I’m not sure why this happened. I hope someone can help me.