Api LinkTraversalData
struct

LinkTraversalData

public sealed struct LinkTraversalData

Holds information about the current link the agent is traversing.

Properties

Name Type Description
LinkEnterPosition Vector3 The start position of the traversal. Depending on the direction traversing, this is either LinkComponent.WorldStartPositionOnNavMesh or LinkComponent.WorldEndPositionOnNavMesh.
LinkExitPosition Vector3 The end position of the traversal. Where the agent should exit. Depending on the direction traversing, this is either LinkComponent.WorldStartPositionOnNavMesh or LinkComponent.WorldEndPositionOnNavMesh.
AgentInitialPosition Vector3 The position at which the agent entered the link.
LinkComponent NavMeshLink The Link component that the agent is traversing. May be null if the agent is traversing a link created without a NavMeshLink component.
Assembly: Sandbox.Engine Declaring Type: NavMeshAgent Full Name: Sandbox.NavMeshAgent.LinkTraversalData