lovr.headset.isTracked

Edit

Returns whether a Device or Model has an actively tracked pose.



Arguments

NameTypeDefaultDescription
deviceDevice'head' The device to check.

Returns

NameTypeDescription
trackedboolean Whether the device or model is currently tracked.

Arguments

NameTypeDescription
modelModel The model to check. Should have been created with lovr.headset.newModel.

Returns

NameTypeDescription
trackedboolean Whether the device or model 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