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.

Definition

void SetDestination(Vector3 destination, bool sprint = false)
void SetDestination(Vector3 destination, bool sprint = false)

Parameters

ParameterDescription
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 desination