Module org.dyn4j
Package org.dyn4j.collision.broadphase
Class BroadphaseFilterAdapter<T extends CollisionBody<E>,E extends Fixture>
- Object
-
- BroadphaseFilterAdapter<T,E>
-
- Type Parameters:
T
- theCollisionBody
typeE
- theFixture
type
- All Implemented Interfaces:
BroadphaseFilter<T,E>
- Direct Known Subclasses:
AABBBroadphaseFilter
,DefaultBroadphaseFilter
,RaycastBroadphaseFilter
@Deprecated public class BroadphaseFilterAdapter<T extends CollisionBody<E>,E extends Fixture> extends Object implements BroadphaseFilter<T,E>
Deprecated.Deprecated in 4.0.0. Use the BroadphaseFilterAdapter in the world package instead.Helper class to avoid having to override all the methods of theBroadphaseFilter
interface.By default all the methods return true to allow all results to be returned.
- Since:
- 3.2.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Constructor Summary
Constructors Constructor Description BroadphaseFilterAdapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
isAllowed(AABB aabb, T body, E fixture)
Deprecated.boolean
isAllowed(Ray ray, double length, T body, E fixture)
Deprecated.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
public boolean isAllowed(T body1, E fixture1, T body2, E fixture2)
Deprecated.Description copied from interface:BroadphaseFilter
Returns true if this result should be added to the results list.- Specified by:
isAllowed
in interfaceBroadphaseFilter<T extends CollisionBody<E>,E extends Fixture>
- Parameters:
body1
- the firstCollisionBody
fixture1
- the firstCollisionBody
sFixture
body2
- the secondCollisionBody
fixture2
- the secondCollisionBody
sFixture
- Returns:
- boolean
-
isAllowed
@Deprecated public boolean isAllowed(AABB aabb, T body, E fixture)
Deprecated.Description copied from interface:BroadphaseFilter
Returns true if this result should be added to the results list.- Specified by:
isAllowed
in interfaceBroadphaseFilter<T extends CollisionBody<E>,E extends Fixture>
- Parameters:
aabb
- the AABB using to testbody
- theCollisionBody
fixture
- theCollisionBody
sFixture
- Returns:
- boolean
-
isAllowed
@Deprecated public boolean isAllowed(Ray ray, double length, T body, E fixture)
Deprecated.Description copied from interface:BroadphaseFilter
Returns true if this result should be added to the results list.- Specified by:
isAllowed
in interfaceBroadphaseFilter<T extends CollisionBody<E>,E extends Fixture>
- Parameters:
ray
- the raylength
- the length of the raybody
- theCollisionBody
fixture
- theCollisionBody
sFixture
- Returns:
- boolean
-
-