public Vector3 SpherePosition(CollisionSphere sphere) { if (sphere.isFeet) return transform.position + sphere.offset * up; else return transform.position + sphere.offset * up * heightScale; }