GetCurrentState
(
config
, transformFeature
, currentState
)
|
Retrieves the current state of a specified transform feature.
Signature
bool Oculus.Interaction.PoseDetection.ITransformFeatureStateProvider.GetCurrentState(TransformConfig config, TransformFeature transformFeature, out string currentState) Parameters config: TransformConfig
The TransformConfig to use for the query
transformFeature: TransformFeature
The TransformFeature to query
currentState: out string
The current state of the transform feature
Returns bool true if the current state was successfully retrieved; otherwise, false |
GetFeatureVectorAndWristPos
(
config
, transformFeature
, isHandVector
, featureVec
, wristPos
)
|
Retrieves the feature vector and wrist position for a specified transform feature.
Signature
void Oculus.Interaction.PoseDetection.ITransformFeatureStateProvider.GetFeatureVectorAndWristPos(TransformConfig config, TransformFeature transformFeature, bool isHandVector, ref Vector3? featureVec, ref Vector3? wristPos) Parameters config: TransformConfig
The TransformConfig to use for the query
transformFeature: TransformFeature
The TransformFeature to query
isHandVector: bool true if the feature vector is a hand vector; otherwise, falsefeatureVec: ref Vector3?
The feature vector
wristPos: ref Vector3?
The wrist position
Returns void |
IsStateActive
(
config
, feature
, mode
, stateId
)
|
Checks if the specified feature is currently in the given state.
Signature
bool Oculus.Interaction.PoseDetection.ITransformFeatureStateProvider.IsStateActive(TransformConfig config, TransformFeature feature, FeatureStateActiveMode mode, string stateId) Parameters config: TransformConfig
The TransformConfig to use for the check
feature: TransformFeature
The TransformFeature to check
mode: FeatureStateActiveMode
The FeatureStateActiveMode to use when checking the feature state
stateId: string
The ID of the state to compare against
Returns bool true if the feature is in the specified state; otherwise, false |
RegisterConfig
(
transformConfig
)
|
Registers a transform configuration with the state provider.
Signature
void Oculus.Interaction.PoseDetection.ITransformFeatureStateProvider.RegisterConfig(TransformConfig transformConfig) Parameters transformConfig: TransformConfig
The TransformConfig to register
Returns void |
UnRegisterConfig
(
transformConfig
)
|
Unregisters a previously registered transform configuration from the state provider.
Signature
void Oculus.Interaction.PoseDetection.ITransformFeatureStateProvider.UnRegisterConfig(TransformConfig transformConfig) Parameters transformConfig: TransformConfig
The TransformConfig to unregister
Returns void |