Module org.dyn4j
Package org.dyn4j.world
Interface BroadphaseCollisionDataFilter<T extends CollisionBody<E>,E extends Fixture>
-
- Type Parameters:
T
- theCollisionBody
typeE
- theFixture
type
- All Known Implementing Classes:
BroadphaseCollisionDataFilterAdapter
,CollisionBodyBroadphaseCollisionDataFilter
,PhysicsBodyBroadphaseCollisionDataFilter
public interface BroadphaseCollisionDataFilter<T extends CollisionBody<E>,E extends Fixture>
Represents a class that defines rules to ignore 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:
- 4.1.0
- Version:
- 4.1.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
-
-