Static function
Moderate
Navigation.GetRandomPointInNavigableRadius
Finds random, point in navigable space restricted to Radius around Origin. Resulting location is not tested for reachability from the Origin (only if map has a NavMesh)
Syntax
Navigation.GetRandomPointInNavigableRadius(origin, radius)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
origin
|
Vector | — | — |
radius
|
float | — | — |
Returns
- Vector The random point