Rotation 360 degrees

How can I detect a frontflip and a backflip?

It’s a rigidbody and the front and back flip is 360 degrees

Basically, save the upright rotation into one variable at the start, for example “Quaternion normalRotation”. Then, create a new variable that is a Quaternion that is 359 degrees different from normalRotation on the same axis. Whenever your player reaches this newRotation, you can count it as a back/front flip.

This is pseudo-pseudo code, but I hope this helps.