示例#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());
 }