# Circle Collision/Bounce

**URL:** <https://forum.kirupa.com/t/circle-collision-bounce/205393>\
**Category:** flash\
**Created:** [October 29, 2006, 2:12am UTC](https://forum.kirupa.com/t/circle-collision-bounce/205393 "2006-10-29T02:12:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esoltas](https://avatars.discourse-cdn.com/v4/letter/e/5e9695/32.png) [@Esoltas](https://forum.kirupa.com/u/Esoltas)\
**Post date:** [October 29, 2006, 2:12am UTC](https://forum.kirupa.com/t/circle-collision-bounce/205393/1 "2006-10-29T02:12:11Z")

</div>

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.

Thanks.  
Esoltas
