public override bool TestCollisionVSOBB(ObjectBoundingBoxHull2D other, ref Collision c) { // Same as above, but first... // transform circle position by multiplying by box world matrix inverse // Find four points on circle, pos.x + cos(a), pos.x - cos(a), pos.y + sin(a), pos.y - sin(a) // Project four points on box normal, project box maxes and mins on circle normal // Run AABB test return(other.TestCollisionVSCircle(this, ref c)); }