public static RaycastHit[] CastAll(CapsuleCollider capsule, Vector3 direction, float maxDistance, LayerMask mask)
 {
     Vector3[] points = capsule.Points();
     return Physics.CapsuleCastAll(points[0], points[1], capsule.radius, direction, maxDistance, mask);
 }
 public static bool Cast(CapsuleCollider capsule, Vector3 direction, out RaycastHit hitInfo, float maxDistance, LayerMask mask)
 {
     Vector3[] points = capsule.Points();
     return Physics.CapsuleCast(points[0], points[1], capsule.radius, direction, out hitInfo, maxDistance, mask);
 }