Question by
jWookie · Sep 26, 2017 at 02:27 AM ·
c#rotationscripting problemlimit
How do I limit an object to rotate back and forth between 2 angles?
Right now, this script allows me to rotate an object clockwise or counterclockwise by holding the "E" or "R" keys. How would I limit the rotation so the object can only go as far clockwise as 10 and as far the other way as -10?
untitled-1.jpg
(196.4 kB)
Comment
Please paste that code into the question so people can read it.
Your answer
Follow this Question
Related Questions
Retaining rotation (preventing rotation snapping) 0 Answers
Copy Rotation in script C# 1 Answer
.rotation doesn't seem to work, can't shoot projectile at mouse coordinates 0 Answers
How to deal with stupid rotation system? 2 Answers
Searching a function to get the rotation of one Vector3 in relation to another 1 Answer