Module org.dyn4j
Package org.dyn4j.world
Interface BroadphaseFilter<T extends CollisionBody<E>,E extends Fixture>
-
- Type Parameters:
T
- theCollisionBody
typeE
- theFixture
type
- All Known Implementing Classes:
BroadphaseFilterAdapter
,CollisionBodyBroadphaseFilter
,PhysicsBodyBroadphaseFilter
public interface BroadphaseFilter<T extends CollisionBody<E>,E extends Fixture>
Represents a class that defines rules to exclude results fromBroadphaseDetector
.The intent is that instances of this class would be used to help filter
CollisionPair
s andCollisionItem
s emitted from theBroadphaseDetector
s.- Since:
- 3.2.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Method Summary
All Methods Instance Methods Abstract 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
boolean isAllowed(T body1, E fixture1, T body2, E fixture2)
Returns true if this result should be added to the results list.- Parameters:
body1
- the firstCollisionBody
fixture1
- the firstCollisionBody
sFixture
body2
- the secondCollisionBody
fixture2
- the secondCollisionBody
sFixture
- Returns:
- boolean
-
-