I am looking for a simple and elegant solution for this problem.

I have a GO that i want to track at any time how far it has rotated in a certain direction.

This is for SuntMANIA. I am trying to track tricks and spins in the game to give players added bonuses.

So, the car is driving and the player hits a ramp and the car flips backwards.

I need to track from the point the car leaves the ground (I have this code already) how much it rotated during the flip (until it hist the ground again), to see whether the player flipped 360 degrees to give them a bonus.

it sounds easy, but it is proving difficult.

I have tried tracking the transform.eulerAngles.x and also using the rigidbody.angularVelocity.x of the object, but it just doesn’t seem to calculate well.

so, in summary:

- leave ground and calc how far rotated in a direction (x-axis) until it hits ground again.

Anyone with any ideas? Thanks in advance.