# Line-line or rectangle-rectangle collisions?

**URL:** <https://forum.kirupa.com/t/line-line-or-rectangle-rectangle-collisions/314616>\
**Category:** Uncategorized\
**Created:** [October 4, 2010, 3:22pm UTC](https://forum.kirupa.com/t/line-line-or-rectangle-rectangle-collisions/314616 "2010-10-04T15:22:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SticksStones](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@SticksStones](https://forum.kirupa.com/u/SticksStones)\
**Post date:** [October 4, 2010, 3:22pm UTC](https://forum.kirupa.com/t/line-line-or-rectangle-rectangle-collisions/314616/1 "2010-10-04T15:22:22Z")

</div>

Hi all,

I’m really bored with bouncing balls and so I’ve been trying to figure out how to make bouncing lines. I didn’t think it’d be too difficult but I just can’t get my head wrapped around it!

There’s lots of info on collision detection, but I can’t seem to find anything much about collision reaction with anything other than circles.

Does anybody know anything about collision reaction with line-line or rectangle-rectangle collisions?

Thanks
