public override bool TestCollisionVSAABB(AxisAlignBoundingBoxHull2D other, ref Collision c) { // calculate closest point by clamping circle center on each dimension // Find the vector2 distance between box & circle // Normalize that vector // multiply the vector by the radius to get the closest point on the circumference // Check if closest point is within box bounds // pass if closest point vs. circle passes return(other.TestCollisionVSCircle(this, ref c)); }