Hello folks! I’m having a lot of headache over a simple thing.
I need the roll axis value of my motion controller for my IK bone transform. However, when I separate roll from pitch and yaw, it flips randomly 180 degrees for example when pitch axis approaches a certain magnitude. Also it’s not an instant flip but some kind of interpolated one, something like a gimbal lock? I don’t know. The result being my roll jumps all over the place, as long as it’s between -180 and 180. I need the roll only.
Is there a way to get around this?
I tried one cunning method → make a dummy which copies the motion controller rotation, attached a sphere to the end of it with an offset. Then when I rotate around roll axis the X position changes accordingly. However when the player turns 90 degrees, it’s no longer the X offset I should read for roll, but Y offset, and if player turns 180 degrees every axis flips again and… Well, let’s just say I can’t get it to work.
I also read some stuff about using quaternions, but giving the lack of quaternion functions in UE blueprint I suppose you can’t easily read a quat rotation of a component.
Perhaps there’s a more humane solution.