lovr.headset.setPosition

Edit

Sets the virtual position of a device. When no headset sesssion is active, getting the position of the device will return this position. 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.

Returns

Nothing

Arguments

NameTypeDescription
deviceDevice The device to assign the position to.
positionvector The position of the device.

Returns

Nothing

See also