-
- All Superinterfaces:
Listener
- All Known Implementing Classes:
RaycastAdapter
@Deprecated public interface RaycastListener extends Listener
Deprecated.Deprecated in 4.0.0. Use the iterator methods in the World class instead.Interface for listening for raycast events.Modification of the
World
is not permitted inside these methods.By default all methods should return true.
- Since:
- 2.0.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Method Summary
All Methods Instance Methods Abstract 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
boolean allow(Ray ray, Body body, BodyFixture fixture)
Deprecated.Called before aBodyFixture
is tested against theRay
.Use this method to filter the ray casting based on the
BodyFixture
.- Parameters:
ray
- theRay
body
- theBody
fixture
- theBodyFixture
to be tested- Returns:
- boolean true if the
BodyFixture
should be included in the raycast - Since:
- 3.0.0
-
allow
boolean allow(Ray ray, Body body, BodyFixture fixture, Raycast raycast)
Deprecated.Called after a successful raycast of the givenBody
andBodyFixture
.Use this method to filter the raycasting based on the
Raycast
result.- Parameters:
ray
- theRay
body
- theBody
fixture
- theBodyFixture
to be testedraycast
- theRaycast
result- Returns:
- boolean true if the
Raycast
result should be allowed - Since:
- 3.1.5
-
-