Struct AutoRepathPolicy Extends IComponentData
Public
Policy for how often to recalculate an agent's path.
This is the unmanaged equivalent of Pathfinding.AutoRepathPolicy.
Public Methods
AutoRepathPolicy
(policy)
Public
DidRecalculatePath
(destination, time)
Must be called when a path request has been scheduled.
Public
Reset
()
Public
ShouldRecalculatePath
(position, radius, destination, time)
True if the path should be recalculated according to the policy.
Public
Public Variables
lastDestination
Public
lastRepathTime
Public
mode
Policy to use when recalculating paths.
Public
period
Number of seconds between each automatic path recalculation for Mode.EveryNSeconds, and the maximum interval for Mode.Dynamic.
Public
Public Static Variables
Default
Public
Static
Sensitivity
How sensitive the agent should be to changes in its destination for Mode.Dynamic.
Public
Static