lovr.headset.isTracked

Edit

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

tracked = lovr.headset.isTracked(device)

Arguments

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

Returns

NameTypeDescription
trackedboolean Whether 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