Module org.dyn4j
Package org.dyn4j.world
Class BroadphaseFilterAdapter<T extends CollisionBody<E>,E extends Fixture>
- Object
-
- BroadphaseFilterAdapter<T,E>
-
- Type Parameters:
T
- theCollisionBody
typeE
- theFixture
type
- All Implemented Interfaces:
BroadphaseFilter<T,E>
- Direct Known Subclasses:
CollisionBodyBroadphaseFilter
public class BroadphaseFilterAdapter<T extends CollisionBody<E>,E extends Fixture> extends Object implements BroadphaseFilter<T,E>
Helper class to avoid having to override all the methods of theBroadphaseFilter
interface.By default all the methods return true to allow all results to be returned.
- Since:
- 3.2.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Constructor Summary
Constructors Constructor Description BroadphaseFilterAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAllowed(T body1, E fixture1, T body2, E fixture2)
Returns true if this result should be added to the results list.
-
-
-
Method Detail
-
isAllowed
public boolean isAllowed(T body1, E fixture1, T body2, E fixture2)
Description copied from interface:BroadphaseFilter
Returns true if this result should be added to the results list.- Specified by:
isAllowed
in interfaceBroadphaseFilter<T extends CollisionBody<E>,E extends Fixture>
- Parameters:
body1
- the firstCollisionBody
fixture1
- the firstCollisionBody
sFixture
body2
- the secondCollisionBody
fixture2
- the secondCollisionBody
sFixture
- Returns:
- boolean
-
-