lovr.headset.setPose
EditSets the virtual pose of a device. When no headset sesssion is active, getting the pose of the device will return this pose. 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. |
| x | number | The x position of the device. |
| y | number | The y position of the device. |
| z | number | The z position of the device. |
| 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. |
| position | vector | The position of the device. |
| orientation | quaternion | The orientation of the device. |
Returns
Nothing