Function Agent.SetObstacleQuery

SetObstacleQuery (GraphNode sourceNode)

Add obstacles to avoid for this agent.

Public
void SetObstacleQuery (

GraphNode

sourceNode

The node to start the obstacle search at. This is typically the node the agent is standing on.

)

Add obstacles to avoid for this agent.

The obstacles are based on nearby borders of the navmesh. You should call this method every frame.