Quat.LookDir

static Quat LookDir(Vec3 direction)

   
Vec3 direction Direction the rotation should be looking. Doesn’t need to be normalized.
RETURNS: Quat A rotation from resting, to the given direction.

Creates a rotation from a resting direction, to the given direction! This prevents roll on the Z axis, Up is always (0,1,0)

static Quat LookDir(float x, float y, float z)

   
float x X component of the direction the rotation should be looking. Doesn’t need to be normalized.
float y Y component of the direction the rotation should be looking. Doesn’t need to be normalized.
float z Z component of the direction the rotation should be looking. Doesn’t need to be normalized.
RETURNS: Quat A rotation from resting, to the given direction.

Creates a rotation from a resting direction, to the given direction! This prevents roll on the Z axis, Up is always (0,1,0)