コード例 #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
ファイル: HandPose.cs プロジェクト: reakain/ClimberSpider
 public HandPose(GripPoints grip, Finger[] FingerList, List <int[]> PadContactList)
 {
 }