Пример #1
0
 public static string BoneToString(LeapDataStructures.Bone bone)
 {
     return(boneNames_.ElementAt((int)bone));
 }
Пример #2
0
        public UnityEngine.Vector3 GetBoneCenter(UnityEngine.Object hand, LeapDataStructures.Finger fingerIndex, LeapDataStructures.Bone boneIndex)
        {
            var fingers    = (UnityEngine.Object[])fingers_.GetValue(hand);
            var finger     = fingers.ElementAt((int)fingerIndex);
            var parameters = new object[1] {
                (int)boneIndex
            };

            return((UnityEngine.Vector3)boneCenter_.Invoke(finger, parameters));
        }