public override bool IsHandClosed(Hand handId) { #if VRTK_DEFINE_SDK_MANUS_VR return(handData.HandClosed(HandToDeviceType(handId))); #else return(false); #endif }
// Update is called once per frame void Update() { if (handData.HandClosed(deviceType)) { if (collidingObject) { GrabObject(); } } if (handData.HandOpened(deviceType)) { if (objectInHand) { ReleaseObject(); } } }