Class NavLink
The off-mesh link objects used to define a custom point-to-point edge within the navigation graph. An off-mesh connection is a user defined traversable connection made up to two vertices, at least one of which resides within a navigation mesh polygon allowing movement outside the navigation mesh.
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[ActorContextMenu("New/Other/Nav Link")]
[ActorToolbox("Other")]
[Unmanaged]
public class NavLink : Actor, ISerializable
Constructors
NavLink()
Properties
BiDirectional
Flag used to define links that can be traversed in both directions. When set to false the link can only be traversed from start to end.
Declaration
[EditorDisplay("Nav Link", null)]
[EditorOrder(30)]
[Unmanaged]
public bool BiDirectional { get; set; }
Property Value
System.Boolean
|
End
The end location which transform is representing link end position. It is defined in local-space of the actor.
Declaration
[EditorDisplay("Nav Link", null)]
[EditorOrder(10)]
[Unmanaged]
public Vector3 End { get; set; }
Property Value
Vector3
|
Radius
The maximum radius of the agents that can go through the link.
Declaration
[EditorDisplay("Nav Link", null)]
[EditorOrder(20)]
[Unmanaged]
public float Radius { get; set; }
Property Value
System.Single
|
Start
The start location which transform is representing link start position. It is defined in local-space of the actor.
Declaration
[EditorDisplay("Nav Link", null)]
[EditorOrder(0)]
[Unmanaged]
public Vector3 Start { get; set; }
Property Value
Vector3
|