I've been using cpSpaceBBQuery, I noticed that when I placed my shapes in a given group, 1 for example I got returned every other group apart from the one I specified. I believe the bug is in the code below, I think !(shape->group) should be exclusive of the (context->group == shape->group)
No, that's the correct behavior. It works exactly the same as collision shapes. You aren't specifying a group to query, you are specifying one to ignore. This is a lot more useful with ray and point queries maybe, but I wanted to be consistent. If you need to do further filtering, you can do so in your own callback.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/