Function AutoRepathPolicy.ShouldRecalculatePath

ShouldRecalculatePath (Vector3 position, float radius, Vector3 destination, float time)

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

Public
bool ShouldRecalculatePath (

Vector3

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.

Vector3

destination

The goal of the agent right now

float

time

The current time in seconds

)

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

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