API ReferenceSandbox
NavMeshLinkclass
NavigationLinks connect navigation mesh polygons for pathfinding and enable shortcuts like ladders, jumps, or teleports.
Constructors1
Showing 1 constructors
public NavMeshLink()
No results match this filter.
Methods3
Showing 3 methods
protected virtual void DrawGizmos()
Returns:
void—protected virtual void OnLinkEntered(Sandbox.NavMeshAgent agent)
Called when an agent enters the link.
| Parameter | Type | Description |
|---|---|---|
| agent | NavMeshAgent | — |
Returns:
void—protected virtual void OnLinkExited(Sandbox.NavMeshAgent agent)
Called when an agent exits the link.
| Parameter | Type | Description |
|---|---|---|
| agent | NavMeshAgent | — |
Returns:
void—No results match this filter.
Properties9
Showing 9 properties
public Sandbox.Engine.Resources.NavMeshAreaDefinition Sandbox.NavMeshLink.Area { get; set; }
The NavMesh area definition to apply to this link.
public System.Action`1<Sandbox.NavMeshAgent> Sandbox.NavMeshLink.LinkEntered { get; set; }
Emitted when an agent enters the link.
public System.Action`1<Sandbox.NavMeshAgent> Sandbox.NavMeshLink.LinkExited { get; set; }
Emitted when an agent exits the link.
public Vector3 Sandbox.NavMeshLink.LocalEndPosition { get; set; }
End position relative to the game object's position.
public Vector3 Sandbox.NavMeshLink.LocalStartPosition { get; set; }
Start position relative to the game object's position.
public Vector3 Sandbox.NavMeshLink.WorldEndPosition { get; set; }
End position in world space.
public System.Nullable`1<Vector3> Sandbox.NavMeshLink.WorldEndPositionOnNavmesh { get; set; }
End position in world space snapped to the navmesh.
public Vector3 Sandbox.NavMeshLink.WorldStartPosition { get; set; }
Start position in world space.
public System.Nullable`1<Vector3> Sandbox.NavMeshLink.WorldStartPositionOnNavmesh { get; set; }
Start position in world space snapped to the navmesh.
No results match this filter.