I have set up a blueprint that allows me to control the rotation of an object based on mouse input. I have it set up so InputAxisTurn controls the Yaw of the object, while InputAxisLookUp controls the pitch.
The problem I’m having is that the object rotation with just pitch and yaw can get off-kilter and rotate the object onto its side. I would like to prevent that from happening by also including the ability to control the roll of the object based on mouse input.
Another way I could see this working would be to limit how much the object can be rotated freely on each axis to prevent it from turning onto its side, but I’m not sure how that is done either.
Any help is appreciated! thanks!