Pathfinding service sucks, not accurate, don't avoid most of the objects and it's very bad at avoiding narrow but tall pieces.

Hello roblox engineers team! I’m currently developing a horror game inside roblox studio engine. I’m currently working on my monster ai. Here it is:

The problem is, the pathfinding service is completely unaccurate and just sucks at most of its use. My map is very detailed and includes alot of small props as you can see:




Most of the times, the monster just get stuck in walls, props and doors. I’ve already tried everything. Pathfinding modifier, Costs, AgentHeight and Radius, WaypointSpacing. But it still doesn’t work.

						local path = PathfindingService:CreatePath({
							AgentRadius = 2.5,
							AgentHeight = 5,
							AgentCanJump = false,
							AgentCanClimb = false,
							WaypointSpacing = 4
						})




monster getting stuck on a simple opened doors(Note that he can actually place a dot inside the doors, since it’s blue inside it, even though the door is touching the floor. Also as you can see on the code, the agent radius is actually bigger than the monster radius.

Sometimes, the monster can’t get past some tiny space even though he could get past according to the agentRadius

My solution to such a bug is making all the props not collide with the monster. However this make him walk in unrealistic ways. And I hope this get fixed ASAP

Expected behavior

Monster not getting stuck, avoiding every type of prop, don’t do sharp turns, actually getting past paths that it can pass.

A private message is associated with this bug report

1 Like