How do I get a pawn to always move forward?

Hi I’m making a game where you play as a Cube that moves through the level, wall avoiding obstacle.

I tried using add impulse to event tick.
I’m at a lost can someone help?

PS I’m simulating physics and the cube is static mesh.

If you’re moving it every frame you need to use Add Force as the Add Impulse doc also suggests. As long as the target’s simulate physics check box is true it should move along the global X axis.

thank you, but I have fund a solution before you have answered me,
It looks like this

Add relative location will bypass physics as it sets a new location for the actor directly. Add Force will allow for smoother/better collision detection.