Function AutoRepathPolicy.ShouldRecalculatePath

ShouldRecalculatePath (float3 position, float radius, float3 destination, float time, bool isPathStale)

True if the path should be recalculated according to the policy.

Public
bool ShouldRecalculatePath (

float3

position

The current position of the agent.

float

radius

The radius of the agent. You may pass 0.0 if the agent doesn't have a radius.

float3

destination

The goal of the agent right now

float

time

The current time in seconds

bool

isPathStale

You may pass true if the agent knows that the current path is outdated for some reason (for example if some nodes in it have been destroyed).

)

True if the path should be recalculated according to the policy.

The above parameters are relevant only if mode is Mode.Dynamic.