lovr.headset.getPosition

Edit

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

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

Arguments

NameTypeDefaultDescription
deviceDevice'head' The device to get the position of.

Returns

NameTypeDescription
xnumber The x position of the device.
ynumber The y position of the device.
znumber The z position of the device.

Notes

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

See also