Description
This class represents a child class of VG_ExternalController.
If you haven’t yet, have a short look at VG_ExternalControllerManager on the purpose of a VG_ExternalController.
If you haven’t yet, have a short look at VG_ExternalControllerManager on the purpose of a VG_ExternalController.
Setup
This is an external controller class that supports a generic overlay controller for the OVRHand class as an external controller.
Important: This is an EXPERIMENTAL controller only for the OculusIntegration sample. It will not function with VG in terms of grasping because VG updates in FixedUpdate() will be overwritten by OVRHand updates which run in Update().
At the moment, we therefore recommend not to use OVRHand / OVRCustomSkeleton but instead use one of the various finger controllers that come with VirtualGrasp and take the same sensor signal. You can compare the solutions in the OculusIntegration sample.
At the moment, we therefore recommend not to use OVRHand / OVRCustomSkeleton but instead use one of the various finger controllers that come with VirtualGrasp and take the same sensor signal. You can compare the solutions in the OculusIntegration sample.
Important: After assuring that the following conditions are met, you have to add the scripting define symbol VG_USE_OCULUS_CONTROLLER to your Unity player settings (Project Settings → Player → Script Compilation).
The following requirements have to be met to be able to enable the #define VG_USE_OVRHAND_CONTROLLER above and use the controller:
- You have the Oculus SDK installed on your computer.
- You have the Oculus Integration plugin imported into your Unity project.
- You are using a handmodel / rig that is based on the OVRHand / OVRCustomSkeleton classes.
If these requirements are met, you will be able to use the “VG_EC_OVRHand” controller profile to setup your MyVirtualGrasp configuration (otherwise an error will appear on the console).
Functionality
Hand Poses
All finger bones are mapped.
All finger bones are generically taken from the Transforms of the hand rig (which is controlled by the OVRHand component).
Grab Signals
will be controlled through the finger configuration (i.e. their state of bending).