How to check the rotation before rotate the object?

Hello, I am developing a game and when the player presses a key, the object is rotated. But checking the current rotation of the object is only made when the user presses the button, thereby the object rotates remains above the threshold.

I need to set a speed limit on the object so it does not rotate above this limit.

If you need to check the current orientation of an object, use the object’s worldOrientation property.
If you need to check a physics object’s current angular velocity, use the getAngularVelocity method.