Is there any pathfinding that does not look for layers?

I need pathfinding that can be used in realtime for procedural worlds, and also does not care about layers. Is it possible?
The reason is because I can not edit the layers in the project, and 90% of the stuff is on the same layer, so I can not specify which layer is used as the obstacle layer.

It would need to detect the obstacles in a different way, for example, just by raycasting ahead and checking for any colliders at a specified height or something.

Hi

Check out the example scene called “Prodedural”. It shows one way to use pathfinding in an infinite procedural world.
Regarding layers: You could disable collision testing altogether and only use the height testing and ‘max climb’ settings for detecting obstacles. It’s hard to say anything more specific without knowing more about the game though.

1 Like