LinkTraversalDataclass

Holds information about the current link the agent is traversing.

objectLinkTraversalData
Namespace
global
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.NavMeshAgent.LinkTraversalData

Properties4

Showing 4 properties

public Sandbox.NavMeshLink Sandbox.NavMeshAgent.LinkTraversalData.LinkComponent { get; set; }PUBLICGETSET

The Link component that the agent is traversing. May be null if the agent is traversing a link created without a NavMeshLink component.

Returns:NavMeshLink

public Vector3 Sandbox.NavMeshAgent.LinkTraversalData.LinkEnterPosition { get; set; }PUBLICGETSET

The start position of the traversal. Depending on the direction traversing, this is either LinkComponent.WorldStartPositionOnNavMesh or LinkComponent.WorldEndPositionOnNavMesh.

Returns:Vector3

public Vector3 Sandbox.NavMeshAgent.LinkTraversalData.LinkExitPosition { get; set; }PUBLICGETSET

The end position of the traversal. Where the agent should exit. Depending on the direction traversing, this is either LinkComponent.WorldStartPositionOnNavMesh or LinkComponent.WorldEndPositionOnNavMesh.

Returns:Vector3

On this page