lovr.headset.setOrientation

Edit

Sets the virtual orientation of a device. When no headset sesssion is active, getting the orientation of the device will return this orientation. This is used to implement the keyboard/mouse headset simulator in the lovr.simulate callback.



Arguments

NameTypeDescription
deviceDevice The device to assign the position to.
anglenumber The number of radians the device is rotated around its rotation axis.
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.

Returns

Nothing

Arguments

NameTypeDescription
deviceDevice The device to assign the position to.
orientationquaternion The orientation of the device.

Returns

Nothing

See also