Package org.jbox2d.testbed.tests
Class PolyShapesCallback
- java.lang.Object
-
- org.jbox2d.testbed.tests.PolyShapesCallback
-
- All Implemented Interfaces:
QueryCallback
class PolyShapesCallback extends java.lang.Object implements QueryCallback
This callback is called by b2World::QueryAABB. We find all the fixtures that overlap an AABB. Of those, we use b2TestOverlap to determine which fixtures overlap a circle. Up to 30 overlapped fixtures will be highlighted with a yellow border.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) DebugDraw
debugDraw
(package private) int
e_maxCount
(package private) CircleShape
m_circle
(package private) int
m_count
(package private) Transform
m_transform
(package private) IWorldPool
p
-
Constructor Summary
Constructors Constructor Description PolyShapesCallback(IWorldPool argWorld)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
DrawFixture(Fixture fixture)
boolean
reportFixture(Fixture fixture)
Called for each fixture found in the query AABB.
-
-
-
Field Detail
-
e_maxCount
int e_maxCount
-
m_circle
CircleShape m_circle
-
m_transform
Transform m_transform
-
debugDraw
DebugDraw debugDraw
-
m_count
int m_count
-
p
IWorldPool p
-
-
Constructor Detail
-
PolyShapesCallback
public PolyShapesCallback(IWorldPool argWorld)
-
-
Method Detail
-
DrawFixture
void DrawFixture(Fixture fixture)
-
reportFixture
public boolean reportFixture(Fixture fixture)
Description copied from interface:QueryCallback
Called for each fixture found in the query AABB.- Specified by:
reportFixture
in interfaceQueryCallback
- Returns:
- false to terminate the query.
-
-