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.
Collision Confusion!
-
- Posts: 229
- Joined: Sun Sep 30, 2007 7:58 am
Re: Collision Confusion!
Hi,
each manifold has a lifetime value. You can test this to see if this contact is new or old.
each manifold has a lifetime value. You can test this to see if this contact is new or old.