Move

Method

Move the avatar in the direction of the input vector. This function should only be used for player input. For AI movement, use SetDestination instead.

Definition

void Move(Vector2 input, bool sprint = false)
void Move(Vector2 input, bool sprint = false)

Parameters

ParameterDescription
Vector2 input

Input vector ranging -1 to +1 on x and y

bool sprint

Uses runSpeed instead of walkSpeed