r/unrealengine • • 3d ago

UE5 Tutorial for Floating Pawn Movement Component

Hi folks. I´m just starting learning UE for a personal project, can you please recommend a book or tutorial to learn about the floating pawn component, or what other method can recommend to use for navigation? My project is strictly 2D Top down with WSAD navigation.
Thanks in advance.

2 Upvotes

5 comments sorted by

1

u/AlexBarenberg 3d ago

For a strict 2D top-down WASD project, FloatingPawnMovement is actually a clean, lightweight starting point—just lock movement to the plane (Constrain to Plane / Z-axis constraint) and pair it with Enhanced Input (AddMovementInput on X/Y). If you later need built-in collision sliding, ramps, or easy networking, CharacterMovementComponent (or Paper2D / PaperZD if you're using sprites) saves a lot of manual math, though FloatingPawnMovement is much simpler to learn first because it doesn't come with all the 3D walking/gravity baggage.

1

u/nesmoth_design 2d ago

Thanks, yeah that´s exactly what I´m looking, since its gonna be a ship XY constrained on Top Down, so the floating pawn will handle navigation. Just started this week to learn and tinker with the engine, bought a book on amazon( Unreal Engine 5 for beginners), very nice writte and easy to follow so far, and it mention the floating pawn but I´m looking for a book or something that teaches properly about this kinds of component. Personally I hate those tutorials that only tells go there and do that, I wanna know how, when and why use a node.

1

u/enchiladasdemole 2d ago

i also suggest adding a springarm and put the camera as child, in the sprintarm increase the lag so you have smooth movement

1

u/SgtFlexxx 3d ago

If your character is walking top-down with feet planted on Terrain, I would use Character, which use CharacterMovement component. It comes with a bunch of built in features like Acceleration, braking, gravity, etc.

I would recommend looking at the Top-down template and diving into the character code, or find a series that reviews the template on Youtube.

•

u/CloudShannen 10h ago

Hmmm most of my bookmarks to blog entries on Floating Pawn / Pawn Movement appear to be dead now but
https://ljung.dev/tutorial/character-movement-from-scratch-pt-1-introduction-and-setup and https://unrealcpp.com/colliding-pawn/ still exists and might be helpful.

https://gist.github.com/mikalv/8b4915c389341f322a0d13a44fc5112d