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

Avatar Rotation Control [UnityScript]

$
0
0
Hey everyone, I'm working on a school project and we're engineering some flight controls into our main character (a pigeon). I have the guy flying around and making a banking motion with GetAxis("Mouse X") and GetAxis("Mouse Y") and then utilizing the Transform.Rotate on the Z axis to have the pigeon tilt on it's sides. I'm wondering if there's a method to limit how far the pigeon rotates (like measuring the degrees that it goes). I would love to have it translate it's transform upon hitting a certain degree of rotation and that's what I'm after more than anything.

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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