daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Oct 2nd, 2015 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Get joint positions of right arm.
  2. shoulder = skeleton.joints[8]
  3. elbow = skeleton.joints[9]
  4. wrist = skeleton.joints[10]
  5. elbow_to_shoulder = norm(shoulder.pos - elbow.pos)
  6. elbow_to_wrist = norm(wrist.pos - elbow.pos)
  7. angle_radians = acos(dot(elbow_to_shoulder, elbow_to_wrist))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top