lovr.headset.getOrientation

Edit

Returns the current orientation of a device or model, in angle/axis form.



Arguments

NameTypeDefaultDescription
deviceDevice'head' The device to get the orientation of.

Returns

NameTypeDescription
anglenumber The amount of rotation around the axis of rotation, in radians.
axnumber The x component of the axis of rotation.
aynumber The y component of the axis of rotation.
aznumber The z component of the axis of rotation.

Arguments

NameTypeDescription
modelModel The model to get the orientation of.

Returns

NameTypeDescription
anglenumber The amount of rotation around the axis of rotation, in radians.
axnumber The x component of the axis of rotation.
aynumber The y component of the axis of rotation.
aznumber The z component of the axis of rotation.

Notes

If the object isn't tracked, this function returns zeroes.

See also