As asked in the title, is there a way to limit the rotation of an object between a negative and positive value?
Limit rotation from -90 (270) to 90. Thus making it from 270 to 0 to 90. And not 270 to 0 to 90.
asked Oct 17 '10 at 06:43 PM
I control my rotation through a value. Convert the value to eulerangle. This permit to limit between a negative and positive value. It also avoid the gimbleLock problem.
answered Oct 21 '10 at 09:11 PM
For hinge joint you can set a min angle of -90 and a max angle of 90 but it's physics based so wont work for scripted movement.
Finding the angle between a standard direction and the current direction via scripts and stopping its movement or snapping to the limit is the other option.
answered Oct 17 '10 at 09:33 PM