I am trying to make a physics game that requires collision detection from a ball going to a rectangle.
For example, I have an if statement that is activated every tim