I’m trying to calculate the pitch of a skeletal socket, but I want to calculate it independent of the pitch and roll. I can get the transform of the socket in parent bone space, but just looking at the euler is problematic because of the order in which rotation is calculated (roll, pitch, and yaw if I understand correctly.) The result is that the pitch is being affected by the other values.

Since I’m able to get the transform of the socket, its quaternion , and its rotation matrix, how can I use this data to calculate the pitch independent of the yaw and roll?