Mover

Merlins Beard . Movement . Mover

Serialized Fields

Moving :: Velocity Event
Walk :: Unity Event
Run :: Unity Event

Methods

Has Reached Destination ( )

Returns true if the Nav Mesh Agent’s remaining distance is less than its stopping distance.

Start Move Action ( Destination :: Vector 3 )

If this component is enabled, calls Go To on the Destination.

Go To ( Target :: Target )

Guards against a null Target then calls Go To on the Target’s position.

Go To ( Destination :: Vector 3 )

Guards against a disabled Nav Mesh Agent then sets the destination of the Agent.

Idle ( )

Guards against a disabled Nav Mesh Agent and sets the destination of the Agent to the position of this transform.

Walk ( )

Invokes the Walk event, leaving it to any listeners to throttle the Nav Mesh Agent accordingly.

Run ( )

Invokes the Run event, leaving it to any listeners to throttle the Nav Mesh Agent accordingly.

Turn To Face ( Target :: Transform )

Uses the angular speed of the Nav Mesh Agent to slerp to face the target’s Transform.

Unity Methods

Awake ( )

Retrieves and stores the Nav Mesh Agent component on this Game Object.

Update ( )

Invokes the Moving event with the velocity of the Nav Mesh Agent.

Serializable Subclasses

Velocity Event : Unity Event < Vector 3 >

Used to pass the local velocity of the Nav Mesh Agent to any listeners.