private void CalculateAxes()
{
if ((this.head != null) && (this.pelvis != null))
{
this.up = CalculateDirectionAxis(this.pelvis.InverseTransformPoint(this.head.position));
}
if ((this.rightElbow != null) && (this.pelvis != null))
{
Vector3 vector;
Vector3 vector2;
this.DecomposeVector(out vector2, out vector, this.pelvis.InverseTransformPoint(this.rightElbow.position), this.up);
this.right = CalculateDirectionAxis(vector);
}
this.forward = Vector3.Cross(this.right, this.up);
if (this.flipForward)
{
this.forward = -this.forward;
}
}