Blueprint pawn prevent going trough static meshes

This is how I solved following your answer. Since the root element of a blueprint seems to be unrotable, I rotate the camera and set the direction of the pawn (while moving) to the direction of the camera. Obviously the capsule component must have something like blockall in the collision preset dropdown. Thanks