A link between two positions on [NavigationRegion3D]s that agents can be routed through.
</brief_description>
<description>
A link between two positions on [NavigationRegion3D]s that agents can be routed through. These positions can be on the same [NavigationRegion3D] or on two different ones. Links are useful to express navigation methods other than traveling along the surface of the navigation mesh, such as ziplines, teleporters, or gaps that can be jumped across.
Returns whether or not the specified layer of the [member navigation_layers] bitmask is enabled, given a [param layer_number] between 1 and 32.
</description>
</method>
<methodname="set_global_end_position">
<returntype="void"/>
<paramindex="0"name="position"type="Vector3"/>
<description>
Sets the [member end_position] that is relative to the link from a global [param position].
</description>
</method>
<methodname="set_global_start_position">
<returntype="void"/>
<paramindex="0"name="position"type="Vector3"/>
<description>
Sets the [member start_position] that is relative to the link from a global [param position].
</description>
</method>
<methodname="set_navigation_layer_value">
<returntype="void"/>
<paramindex="0"name="layer_number"type="int"/>
<paramindex="1"name="value"type="bool"/>
<description>
Based on [param value], enables or disables the specified layer in the [member navigation_layers] bitmask, given a [param layer_number] between 1 and 32.
When pathfinding enters this link from another regions navigation mesh the [member enter_cost] value is added to the path distance for determining the shortest path.
A bitfield determining all navigation layers the link belongs to. These navigation layers will be checked when requesting a path with [method NavigationServer3D.map_get_path].