NavMeshLinkclass

NavigationLinks connect navigation mesh polygons for pathfinding and enable shortcuts like ladders, jumps, or teleports.

objectComponentNavMeshLink
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public class Sandbox.NavMeshLink : Sandbox.Component

Constructors1

Showing 1 constructors

Methods3

Showing 3 methods

protected virtual void DrawGizmos()PROTECTEDVIRTUAL

Returns:void

protected virtual void OnLinkEntered(Sandbox.NavMeshAgent agent)PROTECTEDVIRTUAL

Called when an agent enters the link.

ParameterTypeDescription
agentNavMeshAgent
Returns:void

protected virtual void OnLinkExited(Sandbox.NavMeshAgent agent)PROTECTEDVIRTUAL

Called when an agent exits the link.

ParameterTypeDescription
agentNavMeshAgent
Returns:void

Properties9

Showing 9 properties

public Vector3 Sandbox.NavMeshLink.LocalEndPosition { get; set; }PUBLICGETSET

End position relative to the game object's position.

Returns:Vector3

public Vector3 Sandbox.NavMeshLink.LocalStartPosition { get; set; }PUBLICGETSET

Start position relative to the game object's position.

Returns:Vector3

public System.Nullable`1<Vector3> Sandbox.NavMeshLink.WorldEndPositionOnNavmesh { get; set; }PUBLICGETSET

End position in world space snapped to the navmesh.

Returns:Nullable<Vector3>

public Vector3 Sandbox.NavMeshLink.WorldStartPosition { get; set; }PUBLICGETSET

Start position in world space.

Returns:Vector3

public System.Nullable`1<Vector3> Sandbox.NavMeshLink.WorldStartPositionOnNavmesh { get; set; }PUBLICGETSET

Start position in world space snapped to the navmesh.

Returns:Nullable<Vector3>

On this page