In the Editor it is possible to Change the the Constraints especially Lock Rotation (what I want to modify) from a Pawn (or any other Actor).
But I couldn’t find the variable (or function) to modify it in the Pawn class (obiously in the Constructor). Is there any way to modify it? Or did I missundstand something?
I have a custom Pawn with an capsualComponent as collider (physics simulated RootComponent ). The Problem is, everytime I run against a wall the Pawn is falling down (which is physically correct and something I expected)
I Need to Lock Rotation in the X- and Y-axis (without the freedom to rotate in these axes it is not possible to fall down).