Circle Collision/Bounce

I’m creating a game that requires the collision and subsequent bouncing of circles. Specifically, I need a ball that will bounce off a wall or any non-moving object. The use of the bouncing effect will require a more complex code, because in the container for the circle, the corners are rounded. Thus, making the circle bounce at a certain _y or _x won’t work. It needs to account for angle, possibly momentum. I’ve had trouble locating or creating a code that can be used in the situation for my game.