Quat:setEuler

Edit

Sets the value of the quaternion using euler angles. The rotation order is YXZ.

self = Quat:setEuler(pitch, yaw, roll)

Arguments

NameTypeDescription
pitchnumber The pitch (x axis rotation).
yawnumber The yaw (y axis rotation).
rollnumber The roll (z axis rotation).

Returns

NameTypeDescription
selfQuat The modified quaternion.

See also