NavNode.GetLink
GetLink(Vector3)
Converts the provided direction
into the nearest axis-aligned
direction (e.g. Left, Down, Forward, etc.) and returns the NavLink
corresponding to that axis-aligned direction.
Declaration
public NavLink GetLink(Vector3 direction)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | direction | The approximate direction vector of the desired NavLink to retrieve. |
Returns
Type | Description |
---|---|
NavLink | The NavLink in the given |