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); }
public float getDistanceToBone() { return((this.transform.position - bone.getEndPointWorld()).magnitude); }