public class Sandbox.NavMeshLink : Sandbox.Component
NavigationLinks connect navigation mesh polygons for pathfinding and enable shortcuts like ladders, jumps, or teleports.
Related Guides
Broader workflow and conceptual references connected to this API.
Constructors
Showing 1 constructors
public NavMeshLink()
No results match this filter.
Methods
Showing 3 methods
protected virtual void DrawGizmos()
protected virtual void OnLinkEntered(Sandbox.NavMeshAgent agent)
Called when an agent enters the link.
protected virtual void OnLinkExited(Sandbox.NavMeshAgent agent)
Called when an agent exits the link.
No results match this filter.
Properties
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.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.NavMeshLink |