Make navmesh agent sneak


#1

Im thinking of buying this, however I need to know if there’s a way to make an agent to take a path where it avoids detection (raycast check) from other objects?


#2

Hi

Sorry for the late answer.
There is no built in functionality for this, however you could take a look at the ITraversalProvider, potentially you could use it to add a high penalty for being within line of sight of some enemy.

See https://arongranberg.com/astar/docs/turnbased.html#ITraversalProvider