Difference between revisions of "B2.World:queryAABB"

From GiderosMobile
Line 8: Line 8:
 
(table) = b2.World:queryAABB(minx,miny,maxx,maxy)
 
(table) = b2.World:queryAABB(minx,miny,maxx,maxy)
 
</source>
 
</source>
'''minx:''' (number) the minimal x coordinate of the query box ''''''<br/>
+
'''minx''': (number) the minimal x coordinate of the query box ''''''<br/>
'''miny:''' (number) the minimal y coordinate of the query box ''''''<br/>
+
'''miny''': (number) the minimal y coordinate of the query box ''''''<br/>
'''maxx:''' (number) the maximal x coordinate of the query box ''''''<br/>
+
'''maxx''': (number) the maximal x coordinate of the query box ''''''<br/>
'''maxy:''' (number) the maximal y coordinate of the query box ''''''<br/>
+
'''maxy''': (number) the maximal y coordinate of the query box ''''''<br/>
 
'''Returns''' (table) Indexed array of fixtures that potentially overlaps the provided AABB<br/>
 
'''Returns''' (table) Indexed array of fixtures that potentially overlaps the provided AABB<br/>

Revision as of 11:14, 23 August 2018

Available since: Gideros 2011.6

Description


Query the world for all fixtures that potentially overlap the provided AABB.

(table) = b2.World:queryAABB(minx,miny,maxx,maxy)

'minx: (number) the minimal x coordinate of the query box '
'miny: (number) the minimal y coordinate of the query box '
'maxx: (number) the maximal x coordinate of the query box '
'maxy: (number) the maximal y coordinate of the query box '
Returns (table) Indexed array of fixtures that potentially overlaps the provided AABB