# Bounding circle

**URL:** <https://forum.kirupa.com/t/bounding-circle/315671>\
**Category:** flash\
**Created:** [November 1, 2010, 2:34pm UTC](https://forum.kirupa.com/t/bounding-circle/315671 "2010-11-01T14:34:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![civictjai](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@civictjai](https://forum.kirupa.com/u/civictjai)\
**Post date:** [November 1, 2010, 2:34pm UTC](https://forum.kirupa.com/t/bounding-circle/315671/1 "2010-11-01T14:34:35Z")

</div>

Hi,

Is it possible to make a bounding circle instead of a bounding box?

The objects should bounce INSIDE the circle.  
I have now a bounding box outside the circle, but the objects exceeds the circle at the corners.

I was thinking of making an array of Points on the edge of a circle and when the object is \< or \> then do something… but that would be a lots of if/else statements.

Any of you knows a better solution to achive this?

Thanks!
