Class AgentOffMeshLinkTraversalContext Extends ICloneable

Public

Context with helpers for traversing an off-mesh link.

This will be passed to the code that is responsible for traversing the off-mesh link.

Warning

This context should never be accessed outside of an implementation of the IOffMeshLinkStateMachine interface.

Inner Types

Thrown when the off-mesh link traversal should be aborted.

Public Methods

Abort (teleportToStart=true)

Aborts traversing the off-mesh link.

Public
AgentOffMeshLinkTraversalContext (link)
Public
Clone ()
Public
DisableLocalAvoidance ()

Disables local avoidance for the agent.

Public
DisableRotationSmoothing ()

Disables rotation smoothing for the agent.

Public
MoveTowards (position, rotation, gravity, slowdown)

Move towards a point while ignoring the navmesh.

Public
Restore ()

Restores the agent's settings to what it was before the link traversal started.

Public
SetInternalData (entity, transform, movementPlane, movementControl, movementSettings, linkInfo, state, deltaTime)

Internal method to set the data of the context.

Public
Teleport (position)

Teleports the agent to the given position.

Public

Public Variables

deltaTime

Delta time since the last link simulation.

Public
entity

The entity that is traversing the off-mesh link.

Public
gameObject

GameObject associated with the agent.

Public
link

Information about the off-mesh link that the agent is traversing.

managedState

Some internal state of the agent.

Public
movementControl

How the agent should move.

Public
movementPlane

The plane in which the agent is moving.

Public
movementSettings

The movement settings for the agent.

Public
transform

ECS LocalTransform component attached to the agent.

Public

Private/Protected Members

backupRotationSmoothing
Protected
concreteLink

The off-mesh link that is being traversed.

disabledRVO
Protected
gameObjectCache
Protected
linkInfoPtr
Internal
movementControlPtr
Internal
movementPlanePtr
Internal
movementSettingsPtr
Internal
transformPtr
Internal

Deprecated Members

linkInfo

Information about the off-mesh link that the agent is traversing.

Public