Gimbal lock causing smooth rotational issues

Hello rantrod!

Thanks for the quick respond! I’ve implemented the Euler angle method that you’ve shown and again the problem is introduced when rotating fully upside down 180 in the pitch. From either the west or east (90 or -90) it begins to rotate to (-77, -180, -180) and flips continuously very quickly between that and (-77, -180, 0).

What you say makes sense and is why this problem drives me insane, I’m only rotating about the pitch. However I just realized I may be rotating about all three. Maybe not all at once but when I rotate for left and right, it is about the Z-axis, but only for North and South orientations. When my character is on the west or east, I rotate about the X-axis for left and right. Anyway, not sure if it’s relevant but I thought it would be noteworthy.

  • Thanks again!