- Object
-
- RaycastAdapter
-
- All Implemented Interfaces:
RaycastListener
,Listener
@Deprecated public class RaycastAdapter extends Object implements RaycastListener, Listener
Deprecated.Deprecated in 4.0.0. Use the iterator methods in the World class instead.Default implementation of theRaycastListener
interface.- Since:
- 2.0.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Constructor Summary
Constructors Constructor Description RaycastAdapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
allow(Ray ray, Body body, BodyFixture fixture)
Deprecated.Called before aBodyFixture
is tested against theRay
.boolean
allow(Ray ray, Body body, BodyFixture fixture, Raycast raycast)
Deprecated.Called after a successful raycast of the givenBody
andBodyFixture
.
-
-
-
Method Detail
-
allow
public boolean allow(Ray ray, Body body, BodyFixture fixture)
Deprecated.Description copied from interface:RaycastListener
Called before aBodyFixture
is tested against theRay
.Use this method to filter the ray casting based on the
BodyFixture
.- Specified by:
allow
in interfaceRaycastListener
- Parameters:
ray
- theRay
body
- theBody
fixture
- theBodyFixture
to be tested- Returns:
- boolean true if the
BodyFixture
should be included in the raycast
-
allow
public boolean allow(Ray ray, Body body, BodyFixture fixture, Raycast raycast)
Deprecated.Description copied from interface:RaycastListener
Called after a successful raycast of the givenBody
andBodyFixture
.Use this method to filter the raycasting based on the
Raycast
result.- Specified by:
allow
in interfaceRaycastListener
- Parameters:
ray
- theRay
body
- theBody
fixture
- theBodyFixture
to be testedraycast
- theRaycast
result- Returns:
- boolean true if the
Raycast
result should be allowed
-
-