lovr.headset.isTracked
EditReturns whether a Device or Model has an actively tracked pose.
Arguments
| Name | Type | Default | Description |
| device | Device | 'head' | The device to check. |
Returns
| Name | Type | Description |
| tracked | boolean | Whether the device or model is currently tracked. |
Arguments
| Name | Type | Description |
| model | Model |
The model to check. Should have been created with lovr.headset.newModel.
|
Returns
| Name | Type | Description |
| tracked | boolean | 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.