I found a formula that gets the collision point between a rectangle and a circle, it’s actually a simple equation. I’m surprised. Now, this only works with a rectangle that’s not rotated but this is a starting point.
.
Try it. You can drag the circle. It kind of looks like there’s a gas leak.