lovr.headset.isTracked

Returns whether any active headset driver is currently returning pose information for a device.

tracked = lovr.headset.isTracked(device)

Arguments

NameTypeDefaultDescription
deviceDeviceheadThe device to get the pose of.

Returns

NameTypeDescription
trackedbooleanWhether the device is currently tracked.

Notes

If a device is tracked, it is guaranteed to return a valid pose until the next call to lovr.headset.update.

See also