My character flies, but I need him not to fly.

Hi all. In my game, the character (Pawn class) takes off, although I need to just move in one plane. Without taking off. The class of the character Pawn. How do I make him not move up and down in the direction of the camera? And only be able to move horizontally.

Here is a screenshot of my control

Take a look at the video. The character rides the train and can fly. If I turn on the physics of the capsule, the character falls to the floor and tumbles.

Try using ‘character’ as the parent, rather than pawn.

Try breaking the pin for the Move Forward to only follow the X/Y axis.

I need to use Pawn exclusively for a number of reasons

Can you please tell me how to do this? I’m a beginner.

In the blueprint

right-click on the yellow pin (in both get vector/s and add movement input) and select split pin, should give you X/Y/Z axis and then just don’t connect the Z one in Add Movement Input

1 Like

Thanks, but I need to use Pawn

Thank you, it was solved by your method.)

1 Like

Hi there @Stop-TussiN, hope you’re well!

This topic has been moved from International to Programming & Scripting: Blueprint.

When posting, please review the categories to ensure your topic is posted in the most relevant space.

Thanks and happy developing!