- # Get joint positions of right arm.
- shoulder = skeleton.joints
- elbow = skeleton.joints
- wrist = skeleton.joints
- elbow_to_shoulder = norm(shoulder.pos - elbow.pos)
- elbow_to_wrist = norm(wrist.pos - elbow.pos)
- angle_radians = acos(dot(elbow_to_shoulder, elbow_to_wrist))
a guest Oct 2nd, 2015 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data