Class AutoRepathPolicy

Public

Policy for how often to recalculate an agent's path.

Public Methods

DidRecalculatePath (destination)

Must be called when a path request has been scheduled.

Public
DrawGizmos (position, radius)
Public
Reset ()

Reset the runtime variables so that the policy behaves as if the game just started.

Public
ShouldRecalculatePath (position, radius, destination)

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

Public

Public Variables

interval

Number of seconds between each automatic path recalculation for Mode.EveryNSeconds.

Public
maximumInterval

Maximum number of seconds between each automatic path recalculation for Mode.Dynamic.

Public
mode

Policy to use when recalculating paths.

Public
sensitivity

How sensitive the agent should be to changes in its destination for Mode.Dynamic.

Public
visualizeSensitivity

If true the sensitivity will be visualized as a circle in the scene view when the game is playing.

Public

Public Enums

Mode

Policy mode for how often to recalculate an agent's path.

Public

Private/Protected Members

lastDestination
Private
lastRepathTime
Private