lovr.headset.getPosition

Returns the current position of a device, in meters, relative to the play area.

x, y, z = lovr.headset.getPosition(device)

Arguments

NameTypeDefaultDescription
deviceDeviceheadThe device to get the position of.

Returns

NameTypeDescription
xnumberThe x position of the device.
ynumberThe y position of the device.
znumberThe z position of the device.

Notes

If the device isn't tracked, all zeroes will be returned.

See also