Move only along grid points

boon
Sat, 29 Apr 2023 23:28:16 +0000
Blueprint

Hello, I am trying to modify the behavior of the pathfinding that MoveToLocation uses, or replace it with something that will work.
I would like the path to essentially snap to grid, (just like VectorSnappedToGrid) like so

so the pawn only moves in 45 degree angle increments between “grid points”.

The pawn already starts and ends based on VectorSnappedtoGrid.

I have tried to use Find Path to Location Synchronously

But i think the issue is that it only generates two path points when walking in a straight line (like the left side of my first image) where it would need 3 or more (right side).

Any help with this would be appreciated!

5 posts - 4 participants