Skip to content

Instantly share code, notes, and snippets.

@ged1959
Created February 8, 2015 01:12
Show Gist options
  • Save ged1959/a3c965dd491ad3bdb0b8 to your computer and use it in GitHub Desktop.
Save ged1959/a3c965dd491ad3bdb0b8 to your computer and use it in GitHub Desktop.
leapmotion_1
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