lovr.headset.getPose

Returns the current position and orientation of a device.

x, y, z, angle, ax, ay, az = lovr.headset.getPose(device)

Arguments

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

Returns

NameTypeDescription
xnumber The x position.
ynumber The y position.
znumber The z position.
anglenumber The amount of rotation around the axis of rotation, in radians.
axnumber The x component of the axis of rotation.
aynumber The y component of the axis of rotation.
aznumber The z component of the axis of rotation.

Notes

Units are in meters.

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

See also