lovr.headset.getPosition

Edit

Returns the current position of a device or model, in meters.



Arguments

NameTypeDefaultDescription
deviceDevice'head' The device to locate.

Returns

NameTypeDescription
xnumber The x position.
ynumber The y position.
znumber The z position.

Arguments

NameTypeDescription
modelModel The model to locate.

Returns

NameTypeDescription
xnumber The x position.
ynumber The y position.
znumber The z position.

Notes

If the object isn't tracked, this function returns zeroes.

See also