Package org.jbox2d.testbed.tests
Class PolyShapesCallback
java.lang.Object
org.jbox2d.testbed.tests.PolyShapesCallback
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescription(package private) DebugDraw
(package private) int
(package private) CircleShape
(package private) int
(package private) Transform
(package private) IWorldPool
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
DrawFixture
(Fixture fixture) boolean
reportFixture
(Fixture fixture) Called for each fixture found in the query AABB.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
e_maxCount
int e_maxCount -
m_circle
CircleShape m_circle -
m_transform
Transform m_transform -
debugDraw
DebugDraw debugDraw -
m_count
int m_count -
p
-
-
Constructor Details
-
PolyShapesCallback
-
-
Method Details
-
DrawFixture
-
reportFixture
Description copied from interface:QueryCallback
Called for each fixture found in the query AABB.- Specified by:
reportFixture
in interfaceQueryCallback
- Parameters:
fixture
-- Returns:
- false to terminate the query.
-