Class 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.
    • 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 interface QueryCallback
        Returns:
        false to terminate the query.