I have a Circle with a center point (Center_X, Center_Y) and I am detecting if a rectangle falls into it\'s Radius (Radius). How would I be able to perform this task? I ha
You have two common options for this kind of collision detection.
The first is to understand the ways two 2D objects can collide.
Technically case 1. can only occur if case 2. also occurs, but it is often a cheaper check. Also case 3 is checked by case 1, in the case where both objects vertices are checked.
I would proceed like this. (as it is in order of cheapness)
The second and more general method is based on the notion of the product / expansion of shapes. This operation allows you to convert the intersection question into a point containment question.
In this case the circle / rectangle box intersection can be replaced with a check for a point in a rounded rectangle.