How do you use b2World::Query? [Solved]

Hello I've just started playing around with Box2D yesterday, and I cant seem to
solve my problem of detecting if two bodies collide with each other without physical contact.

for example, if body enters an area return true
You can read about Query in the manual: http://www.box2d.org/manual.html

If you need something more elaborate, look at this thread: http://www.box2d.org/forum/viewtopic.php?f=3&t=137
cool thanks ^_^
but how do you get the aabb of a shape?
for example a b2CircleDef
If you want to query against a shape, rather than a bounding box, then you need to implement the changes to use sensors, as describe the thread I mentioned above. Or wait for Box2D version 2.0.
yup I'm currently working on that thread I've managed to add the m_sensor variable and edit the b2ContactManager::Collide function but I can't make it lose it's physical contaclt even if I turn on the m_sensor to true lox. The shape still bumps with other shapes. hmmmm 😐

My idea was not to check collisions between shapes but that would be nice though, I'm fine with collision between the 2 aabb of two shapes.

I was just wondering if I could check collisions between two b2CircleDef using their aabb I'm assuming that all of the shapes has their own aabb though >_<'
correct me if I'm wrong sorry >_< 🙄 '

*EDIT ohhh wait I'm doing something wrong with the sensor part :p
Cool got the sensor stuff! 😀

but I still don't know how to detect if they are colliding
but though they are colliding visually anyways I think I should go to that thread.
thanks again.

You ROck 👿

Original thread: https://box2d.org/forum/viewtopic.php?t=268