NavMeshLinkΒΆ
Inherited: Component
DescriptionΒΆ
A navigation link defines a traversable connection between startPoint() and endPoint(). The link can be restricted to a configured agent type and can allow traversal in one or both directions.
Links are useful for navigation routes that are not represented by the regular navigation mesh, such as jumps, doors, or teleport connections.
Public MethodsΒΆ
NavMeshLink () |
|
~NavMeshLink () |
|
int |
agentType () const |
int |
areaType () const |
endPoint () const |
|
bool |
isBidirectional () const |
void |
setAgentType (int type) |
void |
setAreaType (int type) |
void |
setBidirectional (bool bidirectional) |
void |
setEndPoint (const Vector3 & point) |
void |
setStartPoint (const Vector3 & point) |
startPoint () const |
Static MethodsΒΆ
None
Methods DescriptionΒΆ
NavMeshLink::NavMeshLink ()
Constructs a navigation link with default endpoints and agent settings.
NavMeshLink::~NavMeshLink ()
Destroys the navigation link.
int NavMeshLink::agentType () const
Returns the navigation mesh agent type allowed to use this link.
See also setAgentType().
int NavMeshLink::areaType () const
Returns the navigation area type assigned to this link.
See also setAreaType().
Vector3 NavMeshLink::endPoint () const
Returns the local-space end point of the link.
See also setEndPoint().
bool NavMeshLink::isBidirectional () const
Returns true when the link can be traversed in both directions.
void NavMeshLink::setAgentType (int type)
Sets the navigation mesh agent type allowed to use this link.
See also agentType().
void NavMeshLink::setAreaType (int type)
Sets the navigation area type assigned to this link.
See also areaType().
void NavMeshLink::setBidirectional (bool bidirectional)
Enables or disables traversal from endPoint() back to startPoint().
When bidirectional is false, the link can only be traversed from startPoint() to endPoint().
See also isBidirectional().
void NavMeshLink::setEndPoint (Vector3 & point)
Sets the local-space end point of the link.
See also endPoint().
void NavMeshLink::setStartPoint (Vector3 & point)
Sets the local-space start point of the link.
See also startPoint().
Vector3 NavMeshLink::startPoint () const
Returns the local-space start point of the link.
See also setStartPoint().