Class AutoRepathPolicy

Public

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

Public Methods

Clone ()
DidRecalculatePath (destination, time)

Must be called when a path request has been scheduled.

DrawGizmos (draw, position, radius, movementPlane)
Reset ()

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

ShouldRecalculatePath (position, radius, destination, time)

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

Public Variables

maximumPeriod

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

Public
mode

Policy to use when recalculating paths.

Public
period

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

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