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?
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).