Ignore navmesh and take shortest path?

Hello, im using mouse movement (click to move to hit location) but my character uses navmesh so it walks only on the “green” areas. I want it to take the shortest path, just fall down when i click the floor standing on higher platform.
How can i achieve that?

Hi Pancakez,

The only solution I could offer you, if you still wish to use the nav mesh for general movement, would be to use nav links. If these are not to your liking, the best solution would be to create a pathfinding method of your own.

With the way nav meshes work, the characters cannot actually see the level. The characters can only see the green areas of the nav mesh. They aren’t aware that they can jump down the side of a ledge as the gap in the mesh that separates the elevated spot and the floor seems like a wall to them unless they are given a nav link.

If this is not the solution you were looking for, please feel free to leave the question unresolved. Someone in the community may know a certain solution that is better for your situation.

Have a nice day

You can also try using AIController's MoveToActor function (instead of SimpleMoveTo I presume you’re using). This thif function gives you an option to disable pathfinding (the UsePathfinding parameter) in which case AI will just try following a straight-line path.

Cheers,

–mieszko

Right now im using NavSys->SimpleMoveToLocation(), clearly using the navmesh. I think MoveToLocation is what i was looking for. But my PlayerController doesnt have that method. It exists only in AIController?

I apologize for the late reply, but PlayerController does also have MoveToLocation. If you’re using blueprint, it’ll only show if you turn off the ‘Context Sensitive’ checkbox when rightclicking the event graph.

Hi Pancakez,

Did you find the solution to your issue? For tracking purposes, I’ll be marking this issue as resolved. If you still require assistance, please feel free to comment and the question will reopen.

Have a nice day,