- Object
-
- BroadphaseFilterAdapter<Body,BodyFixture>
-
- RaycastBroadphaseFilter
-
- All Implemented Interfaces:
BroadphaseFilter<Body,BodyFixture>
@Deprecated public class RaycastBroadphaseFilter extends BroadphaseFilterAdapter<Body,BodyFixture> implements BroadphaseFilter<Body,BodyFixture>
Deprecated.Deprecated in 4.0.0. Use the DetectFilter in the world package instead.Represents aBroadphaseFilter
for theBroadphaseDetector.raycast(Ray, double, BroadphaseFilter)
method.- Since:
- 3.2.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Constructor Summary
Constructors Constructor Description RaycastBroadphaseFilter(boolean ignoreInactive, boolean ignoreSensors, Filter filter)
Deprecated.Full constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Filter
getFilter()
Deprecated.Returns the filter used to filter fixtures.boolean
isAllowed(Ray ray, double length, Body body, BodyFixture fixture)
Deprecated.Returns true if this result should be added to the results list.boolean
isIgnoreInactive()
Deprecated.Returns true if inactive bodies should be ignored.boolean
isIgnoreSensors()
Deprecated.Returns true if sensor fixtures should be ignored.-
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
-
-
-
-
Constructor Detail
-
RaycastBroadphaseFilter
public RaycastBroadphaseFilter(boolean ignoreInactive, boolean ignoreSensors, Filter filter)
Deprecated.Full constructor.- Parameters:
ignoreInactive
- true to ignore inactive bodiesignoreSensors
- true to ignore sensor fixturesfilter
- the fixture filter
-
-
Method Detail
-
isAllowed
public boolean isAllowed(Ray ray, double length, Body body, BodyFixture fixture)
Deprecated.Description copied from interface:BroadphaseFilter
Returns true if this result should be added to the results list.- Specified by:
isAllowed
in interfaceBroadphaseFilter<Body,BodyFixture>
- Overrides:
isAllowed
in classBroadphaseFilterAdapter<Body,BodyFixture>
- Parameters:
ray
- the raylength
- the length of the raybody
- theCollisionBody
fixture
- theCollisionBody
sFixture
- Returns:
- boolean
-
isIgnoreInactive
public boolean isIgnoreInactive()
Deprecated.Returns true if inactive bodies should be ignored.- Returns:
- boolean
-
isIgnoreSensors
public boolean isIgnoreSensors()
Deprecated.Returns true if sensor fixtures should be ignored.- Returns:
- boolean
-
-