Module org.dyn4j
Package org.dyn4j.collision.broadphase
Class DefaultBroadphaseFilter<T extends CollisionBody<E>,E extends Fixture>
- Object
-
- BroadphaseFilterAdapter<T,E>
-
- DefaultBroadphaseFilter<T,E>
-
- Type Parameters:
T
- theCollisionBody
typeE
- theFixture
type
- All Implemented Interfaces:
BroadphaseFilter<T,E>
- Direct Known Subclasses:
DetectBroadphaseFilter
@Deprecated public class DefaultBroadphaseFilter<T extends CollisionBody<E>,E extends Fixture> extends BroadphaseFilterAdapter<T,E> implements BroadphaseFilter<T,E>
Deprecated.Deprecated in 4.0.0. Use the DefaultBroadphaseFilter in the world package instead.A default filter forBroadphaseDetector
s that filtersFixture
s by theirFilter
s.This is the default
BroadphaseFilter
used in theBroadphaseDetector
s. Use the methods in theBroadphaseDetector
that acceptBroadphaseFilter
a to override the filter.It's recommended that this class be extended when creating custom
BroadphaseFilter
s to ensure the default functionality is retained.- Since:
- 3.2.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Constructor Summary
Constructors Constructor Description DefaultBroadphaseFilter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
isAllowed(T body1, E fixture1, T body2, E fixture2)
Deprecated.Returns true if this result should be added to the results list.-
Methods inherited from class BroadphaseFilterAdapter
isAllowed, isAllowed
-
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface BroadphaseFilter
isAllowed, isAllowed
-
-
-
-
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>
- Overrides:
isAllowed
in classBroadphaseFilterAdapter<T extends CollisionBody<E>,E extends Fixture>
- Parameters:
body1
- the firstCollisionBody
fixture1
- the firstCollisionBody
sFixture
body2
- the secondCollisionBody
fixture2
- the secondCollisionBody
sFixture
- Returns:
- boolean
-
-