Quantcast
Channel: Answers for "How can I set a limit to my object rotation???(Here's the code)"
Browsing latest articles
Browse All 6 View Live

Answer by Peter G

You can try directly testing EulerAngles, but that will give you issues so you should probably try storing them in your own variables. You could do it using transform.Rotate(), but you would need...

View Article



Answer by Statement

An alternative approach to the same problem.var velocity = 3.0; var minXAngle : float = -45; var maxXAngle : float = 45; var minZAngle : float = -45; var maxZAngle : float = 45; private var xAngle :...

View Article
Browsing latest articles
Browse All 6 View Live




Latest Images