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