- Joined
- Jan 11, 2009
- Messages
- 3,414
Hello everyone!
I have an object which uses pitch/yaw angles, and i want to cap them to a min anx max value (to limit turning area). Now, the thing is, the angle goes between 30 and -30, which when i use the modulo to get the actual angle, becomes 30 and 330. This is a problem, because the angle is supposed to be capped between larger than 330, but smaller than 30. How can i enforce this?
I have an object which uses pitch/yaw angles, and i want to cap them to a min anx max value (to limit turning area). Now, the thing is, the angle goes between 30 and -30, which when i use the modulo to get the actual angle, becomes 30 and 330. This is a problem, because the angle is supposed to be capped between larger than 330, but smaller than 30. How can i enforce this?