🚢 Navigation
Creates a reachable path into navigable space
🗿 Static Functions
FindPathToLocation: table | Finds a Path given Start and End location | |
GetRandomPointInNavigableRadius: Vector | Finds random, point in navigable space restricted to Radius around Origin. Resulting location is not tested for reachability from the Origin | |
GetRandomReachablePointInRadius: Vector | Finds random, reachable point in navigable space restricted to radius around origin |

FindPathToLocationModerate
Finds a Path given Start and End location
It only works if the map has a NavMesh
local ret = Navigation.FindPathToLocation(start_location, end_location)
Parameters
| Name | Type | Descrição |
|---|---|---|
start_location | Vector | World start location |
end_location | Vector | World end location |
Returns
| Type | Descrição |
|---|---|
| table | Table with the path points and whether a path was found |

GetRandomPointInNavigableRadiusModerate
Finds random, point in navigable space restricted to Radius around Origin. Resulting location is not tested for reachability from the Origin
It only works if the map has a NavMesh
local ret = Navigation.GetRandomPointInNavigableRadius(origin, radius)
Returns
| Type | Descrição |
|---|---|
| Vector | The random point |

GetRandomReachablePointInRadiusModerate
Finds random, reachable point in navigable space restricted to radius around origin
It only works if the map has a NavMesh
local ret = Navigation.GetRandomReachablePointInRadius(origin, radius)
Returns
| Type | Descrição |
|---|---|
| Vector | The random point |
🚀 Events
This class doesn't have own events.
