Created
February 8, 2015 01:12
-
-
Save ged1959/a3c965dd491ad3bdb0b8 to your computer and use it in GitHub Desktop.
leapmotion_1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HandList hands_test = frame.Hands; | |
Hand leftMost = hands_test.Leftmost; | |
if (Input.GetKeyDown (KeyCode.Space)) { | |
f1 = true; | |
} | |
if ((f1) & (hands_test.Count == 2)){ | |
f2 = true; | |
} | |
if ((f1) & (f2) & (leftMost.PalmPosition.x > 100)){ | |
this.rigidbody.velocity = Vector3.up * 5.0f; | |
f1 = false; | |
f2 = false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment