lovr.headset.setOrientation
EditSets 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
| Name | Type | Description |
| device | Device | The device to assign the position to. |
| angle | number | The number of radians the device is rotated around its rotation axis. |
| ax | number | The x component of the axis of rotation. |
| ay | number | The y component of the axis of rotation. |
| az | number | The z component of the axis of rotation. |
Returns
Nothing
Arguments
| Name | Type | Description |
| device | Device | The device to assign the position to. |
| orientation | quaternion | The orientation of the device. |
Returns
Nothing