void Start() { controller = GetComponent <ViveGrip_ControllerHandler>(); GameObject gripSphere = InstantiateTouchSphere(); touch = gripSphere.AddComponent <ViveGrip_TouchDetection>(); touch.radius = touchRadius; }
void CheckController() { if (controller != null) { return; } controller = GetComponent <ViveGrip_ControllerHandler>(); }
void ViveGripInteractionStart(ViveGrip_GripPoint gripPoint) { if (gripPoint.HoldingSomething()) { bubbling = true; controller = gripPoint.controller; } }
void Start() { controller = GetComponent <ViveGrip_ControllerHandler>(); grabber = gameObject.AddComponent <ViveGrip_Grabber>(); GameObject gripSphere = InstantiateTouchSphere(); touch = gripSphere.AddComponent <ViveGrip_TouchDetection>(); UpdateRadius(touchRadius, holdRadius); }
void ViveGripGrabStop() { controller = null; leverRigidBody.isKinematic = true; }
void ViveGripGrabStart(ViveGrip_GripPoint gripPoint) { controller = gripPoint.controller; leverRigidBody.isKinematic = false; }
void ViveGripGrabStop() { controller = null; }
void ViveGripGrabStart(ViveGrip_GripPoint gripPoint) { controller = gripPoint.controller; }
void ViveGripGrabStop() { controller = null; otherHandle.isKinematic = true; thisHandle.isKinematic = true; }
void ViveGripGrabStart(ViveGrip_GripPoint gripPoint) { controller = gripPoint.controller; otherHandle.isKinematic = false; thisHandle.isKinematic = false; }
void ViveGripGrabStop() { controller = null; sliderRigidbody.isKinematic = true; }
void StopFiring() { bubbling = false; controller = null; cooldown = 0f; }
//appeler quand lache l'objet void ViveGripGrabStop(ViveGrip_GripPoint gripPoint) { //attachedGripPoints.Remove(gripPoint); controller = null; }
void ViveGripGrabStart(ViveGrip_GripPoint gripPoint) { //attachedGripPoints.Add(gripPoint); controller = gripPoint.controller; }