private void OnTriggerExit(Collider other) { OculusGrab grabScript = other.GetComponent <OculusGrab>(); if (grabScript == null) { return; } grabScript.GrabbableOutOfRange(this); }
public void InternalOnGrabEnd(OculusGrab grabber) { this.grabber = null; rb.isKinematic = false; rb.velocity = grabber.anchor.TransformDirection(OVRInput.GetLocalControllerVelocity(grabber.controllerHelper.m_controller)) * throwVelocityScale; }
public void InternalOnGrabStart(OculusGrab grabber) { this.grabber = grabber; rb.isKinematic = true; }