Hydrogen Framework
1.3.1
|
Additional static functions used to extend existing NavMesh support inside of Unity. More...
Static Public Member Functions | |
static bool | AgentAtDestination (this NavMeshAgent agent) |
Determine if NavMeshAgent is at its destination. More... | |
static Vector3 | RandomPosition (Vector3 basePosition, float distance, int allowedMask=1) |
Find a random position on the NavMesh. More... | |
Additional static functions used to extend existing NavMesh support inside of Unity.
Definition at line 36 of file NavMesh.cs.
|
static |
Determine if NavMeshAgent is at its destination.
true
, if at destination was agented, false
otherwise.agent | The target NavMeshAgent. |
Definition at line 43 of file NavMesh.cs.
|
static |
Find a random position on the NavMesh.
basePosition | A base position to use as an offset from. |
distance | The maximum allowed distance from the basePosition that the random position can be. |
allowedMask | Any limitations on what NavMeshLayer the position can be on. |
Definition at line 60 of file NavMesh.cs.