Open GoogleCodeExporter opened 9 years ago
For run callback function for each found object, you must return true in your
callback function.
Example for me (JavaScript):
world.QueryAABB(function(fixture) {
// Some code
}, aabb);
In this example, callback function will be called only once (but i know that i
have two bodies at this point)
world.QueryAABB(function(fixture) {
// Some code
return true;
}, aabb);
// If we put return true in callback, this function will be called again for
each found object. In my example function was called second times because i
have two bodies.
Original comment by v.za...@wippo.md
on 9 Jul 2015 at 10:42
Original issue reported on code.google.com by
michael....@verold.com
on 26 Mar 2013 at 6:59