Is there a way to set a max slope that PathfindingService will allow a character to walk on (or, what it will detect as a wall)? I am trying it out for a project to see if I can avoid making a custom pathfinding module, but I have 2 issues with it:
-
My map has “cliffs” both tall and short, made of parts (not smooth terrain) - these have very steep slopes (not exactly vertical, but very close) that are too steep for the character to climb, but PathfindingService will try to drive them over the cliffs regardless
-
The edges of my map are the same as these “cliffs” - far too steep for the character to climb, but technically not vertical. Again, PathfindingService will try to walk across these slopes and the character will slide off and fall into the void
It seems to me that PathfindingService would be useless in almost all applications if it pays no regard to slopes, as I am confident my map is not unique in these features. Is there something I’m missing that can handle these slopes, or do I need to plan to implement my own pathfinding?
Here are 2 photos of these slopes I’m talking about that pathfinding attempts to march through: one , one :
A very small “cliff” it tries to climb that the character can’t get over without jumping (I make it jump temporarily to handle these sections, but I would prefer pathfinding avoid them altogether):
A sloped edge it doesn’t respect and falls off of: