IEnumerator GetPalmPlane() { /*zjsteni roviny dlane pro urceni klikaci roviny - nepouziva se, nepresne*/ Plane plane; Plane firstPlane; firstPlane = leapController.ControllingHandPlane(); while (true) { plane = leapController.ControllingHandPlane(); if (!leapController.ControllingHandInView() || (plane.normal - firstPlane.normal).magnitude > 0.1) { loadingHand.Restart(); firstPlane = plane; } if (loadingHand.HasFinished()) { //print (leapController.ControllingHandInView()); plane = leapController.ControllingHandPlane(); //print (plane.distance); //print (plane.normal); ClickPlaneScanned(plane); break; } yield return(null); } }