Good pathfinding module?

im not sure what category to put this

so i have a creature that chases the player and the im currently using the SimplePath modulescript for this

now every pathfinding script ive tried including one that i made all run into one issue, and that issue is the trees. the entire map is a forest and it keeps bumping into a tree like this:


this cube is about the size and shape of the creature

so it bumps into a tree and even with a player directly in front if it gets stuck. it constantly is changing the path between going left and going right and the result is it kind of just sliding in place, doesnt turn around or anything it kind of is just doomed because of how big it is and the fact that its square

any way to combat this, like a good pathfinding module?

1 Like

Is there a reason you aren’t using PathfindingService?

hes tried every one he can find including pathfinding service is what im getting from this

PathfindingService, while not perfect, should easily handle this by properly setting AgentParameters like AgentRadius and AgentHeight.

most of them from toolbox, im using the simplepath module right now and that uses pathfindingservice

wait why do you need to use a module though? what about just creating a path and using parameters like he said?

still had this issue where it bumps into the tree and gets stuck

What does your navmesh look like around trees?

Go to top left → file → studio settings → search navigation mesh and check the box to view the navmesh.

Alternatively, you can put a barrier covering the tree and add a pathfinding modifier so NPC avoids said area → and then set the cost to math.huge (meaning the NPC will not pathfind to that area).

the barrier idea on the trees is really good actually, i think that would work great

in the meanwhile heres the navmesh:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.