Input

Model

Input module reads hand data, process it and moves master hand according to the result. Variables of this model are described bellow:

References

  • Hand: Master representation of this hand will be driven by this module. This reference has to be manually set.

  • Configuration: ScriptableObject with all variables related with tracking loss, tracking prediction, tracking smoothing, etc. If null, the first InputConfiguration in HPTK.core.defaultConfAssets will be used. This configuration file is described in detail here.

  • Input Data Provider: If null, HPTK.core.{left,right}{Build,Editor}Idp will be used.

Control

  • Is Active: Is InputController driving master hand?

  • Update Real Scale: Should InputController modify HandModel.realScale acording to InputModel.inputDataProvider.scale.

Wrist placement

  • Move This As Wrist: This Transform will be moved & rotated . If null, InputController will move & rotate HandModel.wrist.point.reprs[AvatarModel.key].transformRef.

  • Reference Tsf: Transform that represents the origin point of hand data in world space. If null, InputController will use HPTK.core.trackingSpace.

  • Replicated Tsf: Transform that represents the origin point of hand data relative to avatar.

Rig mapping

  • Rig Map: Correspondence between BoneModels and hand data components.

  • Auto Rig Mapping On Start: Should InputController fill empty references in rig map automatically on MonoBehaviour.Start()?

State

  • Hand Is Tracked: Is hand being tracked?

  • Fingers Are Tracked: Are fingers being tracked?

  • Is Predicting: Is wrist position & rotation being predicted?

View

Events

  • OnHandTrackingLost: Emitted when InputModel.inputDataProvider.confidence becomes lower than InputModel.configuration.handTrackingLostUnderConfidence.

  • OnHandTrackingRecovered: Emitted when InputModel.inputDataProvider.confidence raises above InputModel.configuration.handTrackingLostUnderConfidence.

  • OnFingersTrackingLost: Emitted when InputModel.inputDataProvider.confidence becomes lower than InputModel.configuration.fingersTrackingLostUnderConfidence.

  • OnFingersTrackingRecovered: Emitted when InputModel.inputDataProvider.confidence raises above InputModel.configuration.fingersTrackingLostUnderConfidence.

  • OnPredictionStart: If InputMode.configuration.usePredictiveTracking is enabled, this event will be emitted on hand tracking lost.

  • OnPredictionInterrupted: If InputMode.configuration.usePredictiveTracking is enabled, this event will be emitted on hand tracking recovered.

  • OnPredictionTimeLimitReached: If InputMode.configuration.usePredictiveTracking is enabled, this event will be emitted when time since tracking loss reaches InputModel.configuration.maxPredictionTime.

Last updated