Module org.dyn4j
Package org.dyn4j.collision.broadphase
Class CollisionItemBroadphaseFilter<T extends CollisionBody<E>,E extends Fixture>
- Object
-
- CollisionItemBroadphaseFilter<T,E>
-
- Type Parameters:
T
- theCollisionBody
typeE
- theFixture
type
- All Implemented Interfaces:
BroadphaseFilter<CollisionItem<T,E>>
public final class CollisionItemBroadphaseFilter<T extends CollisionBody<E>,E extends Fixture> extends Object implements BroadphaseFilter<CollisionItem<T,E>>
ABroadphaseFilter
that ensuresCollisionItem
s of the same body are not compared.- Since:
- 4.1.0
- Version:
- 4.1.0
- Author:
- William Bittle
-
-
Constructor Summary
Constructors Constructor Description CollisionItemBroadphaseFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAllowed(CollisionItem<T,E> object1, CollisionItem<T,E> object2)
Returns true if the detection of the objects should proceed.
-
-
-
Method Detail
-
isAllowed
public boolean isAllowed(CollisionItem<T,E> object1, CollisionItem<T,E> object2)
Description copied from interface:BroadphaseFilter
Returns true if the detection of the objects should proceed.- Specified by:
isAllowed
in interfaceBroadphaseFilter<T extends CollisionBody<E>>
- Parameters:
object1
- the first objectobject2
- the second object- Returns:
- boolean
-
-