Exemple #1
0
 public override void solve()
 {
     Vector3 shoulderToWrist     = hand.getEndPointWorld() - upper.transform.position;
     float   shoulderToWrist_len = shoulderToWrist.magnitude;
     float   ellbowAngle         = The5.Math.Trigonometry.angleOppositeC(upper.length, lower.length, shoulderToWrist_len);
 }
Exemple #2
0
 public float getDistanceToBone()
 {
     return((this.transform.position - bone.getEndPointWorld()).magnitude);
 }