lovr.headset.setPose

Edit

Sets 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

NameTypeDescription
deviceDevice The device to assign the position to.
xnumber The x position of the device.
ynumber The y position of the device.
znumber The z position of the device.
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.
positionvector The position of the device.
orientationquaternion The orientation of the device.

Returns

Nothing

See also