private void OnGrabEnd(MetaInteractionData data) { //UpdateStateVisuals(PalmState.Hovering); Debug.Log("GrabEnd....."); cp0_on = !cp0_on; cp0.SetActive(cp0_on); cp1_on = !cp1_on; cp1.SetActive(cp1_on); }
public void ClickRelease(MetaInteractionData data) { //if we exceed this time, we should treat that grab as an drag'n'drop if (accumulator <= clickTime) { //otherwise click has been detected PerformClick(); } isPressing = false; }
private void OnGrabbedTarget(MetaInteractionData data) { // Store calibration data Hand handData = data.MotionHandFeature.Hand; metaPoints.Add(origin.transform.InverseTransformPoint(handData.Palm.Position)); leapPoints.Add(origin.transform.InverseTransformPoint(handData.HandType == HandType.Left ? leftHand.position : rightHand.position)); // Prepare the next object ShowNextTarget(); }
private void HoverStart(MetaInteractionData m) { _dataRow.EventType = "HoverStart"; _dataRow.TotalTime = Time.time; _dataRow.TrialTime = _dataRow.TotalTime - _trailStartTime; _dataRow.isCorrectObj = true; _dataRow.ObjectPosition = _targetBook.transform.position; _dataRow.ClosestPoint = Vector3.zero; _dataRow.PalmPosition = Vector3.zero; _dataRow.AnchorPosition = Vector3.zero; LogData(_dataRow); }
private void OnGrabEnd(MetaInteractionData data) { //UpdateStateVisuals(PalmState.Hovering); //Debug.Log("GrabEnd....."); for (int i = 0; i < 18; i++) { cp[i].SetActive(false); } cp[1].SetActive(true); cp[12].SetActive(true); cp[16].SetActive(true); }
private void OnGrabEnd(MetaInteractionData data) { //UpdateStateVisuals(PalmState.Hovering); //Debug.Log("GrabEnd....."); for (int i = 0; i < 18; i++) { cp[i].SetActive(false); } cp[1].SetActive(true); cp[8].SetActive(true); cp[9].SetActive(true); chord_a.PlayOneShot(amchord, 3F); }
private void DecoyObjDropped(MetaInteractionData m) { _falseObjGrabs -= 1; }
public void ClickStart(MetaInteractionData data) { isPressing = true; accumulator = 0; }
private void GrabOff(MetaInteractionData m) { _isGrabbed = false; }
private void GrabOn(MetaInteractionData m) { _isGrabbed = true; }
private void GrabOff(MetaInteractionData m) { _rend.material.color = ObjectHoverColor; }
private void GrabOn(MetaInteractionData m) { _rend.material.color = ObjectGrabbedColor; }
private void TargetObjectHoverEnter(MetaInteractionData m) { _isTargetHovered = true; }
private void OnHoverEnd(MetaInteractionData data) { UpdateStateVisuals(PalmState.Idle); }
private void OnGrabStart(MetaInteractionData data) { UpdateStateVisuals(PalmState.Grabbing); }
private void DecoyObjGrabbed(MetaInteractionData m) { _falseObjGrabs += 1; }
private void ObjDropped(MetaInteractionData m) { _testGrabbed = false; }
private void ObjGrabbed(MetaInteractionData m) { _testGrabbed = true; }
private void OnGrabStart(MetaInteractionData data) { //UpdateStateVisuals(PalmState.Grabbing); // chord_a.PlayOneShot(amchord, 3F); }
private void OnHoverStart(MetaInteractionData data) { UpdateStateVisuals(PalmState.Hovering); }
private void NoObjGrabbed(MetaInteractionData m) { _missGrab = true; }
private void NoObjDropped(MetaInteractionData m) { _missGrab = false; _frontBlock.transform.position = new Vector3(0f, -0.1f, 0.15f); }
private void TargetObjectHoverExit(MetaInteractionData m) { _grabObjects[0].GetComponent <Renderer>().material.color = new Color(0.8f, 0.14f, 0.1f); _isTargetHovered = false; }