Module org.dyn4j
Package org.dyn4j.collision.broadphase
Interface BroadphaseFilter<T extends CollisionBody<E>,E extends Fixture>
-
- Type Parameters:
T
- theCollisionBody
typeE
- theFixture
type
- All Known Implementing Classes:
AABBBroadphaseFilter
,BroadphaseFilterAdapter
,DefaultBroadphaseFilter
,DetectBroadphaseFilter
,RaycastBroadphaseFilter
@Deprecated public interface BroadphaseFilter<T extends CollisionBody<E>,E extends Fixture>
Deprecated.Deprecated in 4.0.0. Use the BroadphaseFilter in the world package instead.Represents a class that defines rules to exclude results from aBroadphaseDetector
's query methods.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 Deprecated Methods Modifier and Type Method Description boolean
isAllowed(AABB aabb, T body, E fixture)
Deprecated.Deprecated in 4.0.0.boolean
isAllowed(Ray ray, double length, T body, E fixture)
Deprecated.Deprecated in 4.0.0.boolean
isAllowed(T body1, E fixture1, T body2, E fixture2)
Deprecated.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)
Deprecated.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
-
isAllowed
@Deprecated boolean isAllowed(AABB aabb, T body, E fixture)
Deprecated.Deprecated in 4.0.0. This was replaced with a specific AABB filter interface.Returns true if this result should be added to the results list.- Parameters:
aabb
- the AABB using to testbody
- theCollisionBody
fixture
- theCollisionBody
sFixture
- Returns:
- boolean
-
isAllowed
@Deprecated boolean isAllowed(Ray ray, double length, T body, E fixture)
Deprecated.Deprecated in 4.0.0. This was replaced with a specific Ray filter interface.Returns true if this result should be added to the results list.- Parameters:
ray
- the raylength
- the length of the raybody
- theCollisionBody
fixture
- theCollisionBody
sFixture
- Returns:
- boolean
-
-