My Pawn (a plane) should be able to fully rotate in all values(roll, yaw, pitch) from 0 to 360 degree.
Normally I just use AddActorLocalRotation(DeltaRotation, true), but the pitch value likes only values from -90 to 90 degree.
After I red threads like https://answers.unrealengine.com/questions/36110/rotate-a-pawn-in-full-360-degrees.html ,
I am aware, that there are problems with gimbal lock.
So my questions:
If I want to use that FORCEINLINE function, do I have to put in the cpp file of my pawn or in a specific class of the engine?
How is this problem solved? (euler degrees, quaterions, different approaches?)
Is there another way, where a FORCEINLINE or quaternions aren’t needed?