lovr.headset.getPosition

Returns the current position of the headset.

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

Arguments

None

Returns

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

Get the position of an eye.

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

Arguments

NameTypeDescription
eyeHeadsetEyeThe eye to get the position of.

Returns

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

See also