setDirection

public Location setDirection(Vector vector)

Sets the yaw and pitch to point in the direction of the vector.

Return

the same location

Parameters

vector

the direction vector