# Gravity + Collision Detection

**URL:** https://forum.kirupa.com/t/gravity-collision-detection/221419
**Category:** flash
**Created:** [April 4, 2007, 5:09am UTC](https://forum.kirupa.com/t/gravity-collision-detection/221419 "2007-04-04T05:09:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![d3v1an7](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@d3v1an7](https://forum.kirupa.com/u/d3v1an7)
#### Post date: [April 4, 2007, 5:09am UTC](https://forum.kirupa.com/t/gravity-collision-detection/221419/1 "2007-04-04T05:09:51Z")

</div>

Hey guys!  
Working on a small project, and it’s so close to working, I can taste it!

Problem is, it’s a bit of a mish mash of code from various tutorials on this site, and although I understand 90% of it, I can’t quite get it to do what I want.

Basically, everything works except the collision part…which still works, but not how I want.  
The major issue is: **Some items overlap when the collide, others don’t.**

If you play around with it, you’ll hopefully see what I mean.  
Any insights would be greatly appreciated!
