I am making a game with the sprite jumping up from the platform. After the jump I have made the sprite to rotate using the angular acceleration. It can rotate clockwise and anticlockwise.
I want to calculate whether it rotated clockwise or anticlockwise before coming to the platform and how many complete revolutions it made.
How it can be done? I am using Phaser 2.3.0.