public void FixedUpdate() { xRange = new Vector2(joint.lowAngularXLimit.limit, joint.highAngularXLimit.limit); zRange = new Vector2(-joint.angularZLimit.limit, joint.angularZLimit.limit); jointRotation = joint.Angles(); value = new Vector2(jointRotation.z / (zRange.x - zRange.y), jointRotation.x / (xRange.x - xRange.y)) * 2; }