I'm needing to test an user-entered body (usually a collection on polygons) against all the world for overlapping.
I looked around and saw that there isn't an available way to test this without playing with the innards of the engine, so I decided to ask if what I'm thinking of doing is too ugly.
As I will probably need this done before the sensor shapes get implemented (that would solve it), I'm thinking of going through the world->Query results and creating a b2Contact for the matches, and testing for manifolds.
Is there an easier/cheaper way to do this now?
I looked around and saw that there isn't an available way to test this without playing with the innards of the engine, so I decided to ask if what I'm thinking of doing is too ugly.
As I will probably need this done before the sensor shapes get implemented (that would solve it), I'm thinking of going through the world->Query results and creating a b2Contact for the matches, and testing for manifolds.
Is there an easier/cheaper way to do this now?