API reference
API reference
Select your platform
No SDKs available
No versions available

OVRControllerDrivenHandPosesSample Class

Extends MonoBehaviour
Simple script for running the controller-driven hand poses sample.
This sample demonstrates the ability for OVRInput to simulate human hand inputs by working backward from controller state (for example, by curling or extending the index finger based on the observed values for OVRInput.Axis1D.PrimaryIndexTrigger, etc. Note that performing this hand simulation is a feature of OVRInput, not OVRControllerDrivenPosesSample, which merely conducts the demonstration.

Fields

The OVRCameraRig for the scene, containing representations of the various XR input and output modalities.
This field is not used by OVRControllerDrivenHandPosesSample itself, but can be accessed by dependent types which may have a dependency on the rig.

Member Functions

Sets the mode of the controller-driven hands simulation to OVRManager.ControllerDrivenHandPosesType.None and updates sample state correspondingly.
Sets the mode of the controller-driven hands simulation to OVRManager.ControllerDrivenHandPosesType.ConformingToController and updates sample state correspondingly.
Subsequent calls to either SetControllerDrivenHandPosesTypeToNone or SetControllerDrivenHandPosesTypeToNatural will override these changes.
Sets the mode of the controller-driven hands simulation to OVRManager.ControllerDrivenHandPosesType.Natural and updates sample state correspondingly.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon