Collision Confusion!

webjeff
Posts: 15
Joined: Tue Dec 16, 2008 1:46 am

Collision Confusion!

Post by webjeff »

As the title reads, I'm confused on how to handle collisions.

I am trying to figure out the proper way of determining when objects collide. Currently, after a step I grab the manifolds and see who's touching who, but the problem is if an object is on the ground, I get that non-stop. I just need to know the first time an object collides, is there a better way of doing this, or should I just ignore it after I got my first collision of the 2 objects I'm looking for?

Thanks.
Jeff.
pico
Posts: 229
Joined: Sun Sep 30, 2007 7:58 am

Re: Collision Confusion!

Post by pico »

Hi,

each manifold has a lifetime value. You can test this to see if this contact is new or old.