Пример #1
0
        void SampleHandPosition()
        {
            GripPoints newGrip = new GripPoints(PossibleHoldPoints[Mathf.RoundToInt(Random.Range(0, PossibleHoldPoints.Count - 1))]);

            PositionRotation[] points = new PositionRotation[HandObject.FingerList.Length];

            for (int i = 0; i < HandObject.FingerList.Length; i++)
            {
                var pads = HandObject.FingerList[i].GetComponentsInChildren <FingerPad>();
                points[i] = pads[pads.Length - 1].JointPositionFromPad(newGrip.GetGrip()[i]);
            }
            // From touch points back calculate finger poses;
            //
        }
Пример #2
0
 public GripPoints(GripPoints point)
 {
     SetGrip(point.GetGrip());
 }
Пример #3
0
 public HandPose(GripPoints grip, Finger[] FingerList, List <int[]> PadContactList)
 {
 }