Greetings all! I'd like to detect when an object has made a full rotation and am trying to figure out the best way to do that.
The context is a physics object which you knock into the air, and if you get some spin on it I'd like to assign points every time it does a complete 360 rotation.
My initial thought was to detect the object's angle as soon as it gets airborn, then listen for every time its angle is once again equal to that starting angle, but since the angle is a float it will never be exactly equal (that method also doesn't take into account if it switches spin directions for whatever reason)
Other suggestions?
Edit: note I'm using the Chipmunk plugin for the physics object