Question by
TrentBorchard · Sep 05, 2019 at 12:03 PM ·
rotationangleclamphinge
Converting rotation into float. (Reclamp or Rerange?)
Ive used a math reclamp in touch designer to convert rotations back and forth but don't have to right words to find examples in unity. Not clamp apparently.
I've got a lever on a hinge i can move from -45 to 45. So when i get the rotation value how can I convert it into a usable value like 0-1 or 0-100
Comment
Your answer
Follow this Question
Related Questions
How to set jump angle from rotating collider ( surface )? 0 Answers
Rotate Camera in Y axis without visibly changing angle in Z axis 2 Answers
Ask some problem about rotation, quaternion and angle 0 Answers
Quaternion.RotateTowards + some angle. How i can do this? 0 Answers
How can i get Transform component rotation value which seen in editor inspector? 0 Answers