Sorry if a post like this already exists (couldn't find it).
I'm trying to calculate how many flips the player has done on their bike but since I'm always getting a positive value I can't calculate it properly.
So this raises a few questions:
- Is there a way to make the rotation go into the negative? If so, how?
- How can I check if the rotation value falls below 0 and jumps to a value between 300-360?
So you know, I've been using "GameObject.transform.rotation.eulerAngles.z" to get the rotation value.
Thank you for your time and help.
↧