There are situations where roll and yaw do not seem to work correctly. What is wrong?

0 votes
asked Mar 13, 2016 by ba3user (4,000 points)

1 Answer

0 votes
answered Mar 13, 2016 by ba3user (4,000 points)

Using yaw/pitch/roll to represent a rotation is very convenient because it is easy to understand, but when pitch = 90 or -90, yaw/pitch/roll rotations experience gimbal lock. This is a situation where yaw and roll overlap each other and do the same thing. You can search Wikipedia or youtube for explanations ( The only way to avoid gimbal lock is to use a more complicated rotation representation, such as quaternions ( or rotation matrices. In Altus, we have a quatd class that represents a quaternion, and the Transform behaves similar to a rotation matrix.