Trying to do some rotator math, but can’t seem to figure it out. I’m trying to swap pitch and roll the closer yaw gets to 90 degrees. So say at yaw=0 that roll=0 and pitch=10, then at yaw=90 I need roll=10 and pitch=0, but I can’t seem to get that working. The use case is that I have a mech that pitches slightly forward and backward based on the momentum of it’s movement. However, the upper body can rotate independently of the pelvis, and I am using an aiming trace to change the yaw of the upper body. The problem is that if I don’t add any roll or pitch the upper body only yaws and looks strange since the rest of the body is pitching with movement, or I use the pelvis pitch and roll but then the upper body pitches in the wrong direction if strafe left and right.

