Module org.dyn4j
Package org.dyn4j.world
Class BroadphaseCollisionDataFilterAdapter<T extends CollisionBody<E>,E extends Fixture>
- Object
-
- BroadphaseCollisionDataFilterAdapter<T,E>
-
- Type Parameters:
T
- theCollisionBody
typeE
- theFixture
type
- All Implemented Interfaces:
BroadphaseCollisionDataFilter<T,E>
public class BroadphaseCollisionDataFilterAdapter<T extends CollisionBody<E>,E extends Fixture> extends Object implements BroadphaseCollisionDataFilter<T,E>
Helper class to avoid having to override all the methods of theBroadphaseCollisionDataFilter
interface.By default all the methods return true to allow all results to be returned.
- Since:
- 3.2.0
- Version:
- 4.1.0
- Author:
- William Bittle
-
-
Constructor Summary
Constructors Constructor Description BroadphaseCollisionDataFilterAdapter()
-
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:BroadphaseCollisionDataFilter
Returns true if this result should be added to the results list.- Specified by:
isAllowed
in interfaceBroadphaseCollisionDataFilter<T extends CollisionBody<E>,E extends Fixture>
- Parameters:
body1
- the firstCollisionBody
fixture1
- the firstCollisionBody
sFixture
body2
- the secondCollisionBody
fixture2
- the secondCollisionBody
sFixture
- Returns:
- boolean
-
-