SetDestination
Method
Order the avatar to move to a destination using a navmesh if available. If there is no navmesh, the avatar will move directly to the destination in a straight line.
Parameters
| Parameter | Description |
|---|---|
| Vector3 destination | The target position, the closest position on the navmesh or ground will be chosen. |
| bool sprint | Should the avatar run or walk to the destination |