Function AutoRepathPolicy.ShouldRecalculatePath
ShouldRecalculatePath
(float3 position, float radius, float3 destination, float time)
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 |
True if the path should be recalculated according to the policy.
The above parameters are relevant only if mode is Mode.Dynamic.