Quantcast
Channel: Answers for "How can I set a limit to my object rotation???(Here's the code)"
Browsing all 6 articles
Browse latest 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


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

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 all 6 articles
Browse latest View live


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