Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

GameObject Rotation is always postive

$
0
0
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.

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>