Check if two geometries should collide

Topics: User Forum
Aug 27, 2009 at 2:29 PM

I'm trying to make a method who checks if two geometries should collide or not, but I'm realizing htat there are a lot of things to check (CollisionGroups, CollisionCategories which I'm not even sure how to check them as I don't know how to check flags, if the geom is enabled, etc).

So my question is, ¿does anyone know a simple way to check if two geometries should collide? (throwing a geom against another doesn't count)


Aug 27, 2009 at 3:42 PM

Look inside the BruteForce broadphase collider. All the checks in there are to ensure that two geometries are able to collide before processing the geometry. Just use that code and you should be ready to go.

Sep 1, 2009 at 4:26 PM

Yes, I second genbox's recommendation. I read through the BruteForce broadphase collider and it answered a lot of questions for me.