-
- All Superinterfaces:
Listener
- All Known Implementing Classes:
DetectAdapter
@Deprecated public interface DetectListener extends Listener
Deprecated.Deprecated in 4.0.0. Use the iterator methods in the World class instead.Interface to listen for detection events from theWorld
.detect methods.By default all methods should return true.
- Since:
- 3.1.9
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
allow(AABB aabb, Body body, BodyFixture fixture)
Deprecated.Called before theBodyFixture
is tested against the givenAABB
.boolean
allow(Convex convex, Transform transform, Body body)
Deprecated.boolean
allow(Convex convex, Transform transform, Body body, BodyFixture fixture)
Deprecated.Called before theBodyFixture
is tested against the givenConvex
.
-
-
-
Method Detail
-
allow
boolean allow(AABB aabb, Body body, BodyFixture fixture)
Deprecated.Called before theBodyFixture
is tested against the givenAABB
.Return false from this method to eliminate this fixture from the list of results. Return false also improves performance by reducing the number of collision tests.
This method is only called by the
World.detect(AABB,...)
methods.- Parameters:
aabb
- the AABB givenbody
- theBody
whose AABB overlaps the given AABBfixture
- theBodyFixture
that is about to be tested- Returns:
- boolean true to allow this body to be included in the results
-
allow
boolean allow(Convex convex, Transform transform, Body body)
Deprecated.Called after the givenConvex
has been found to overlap the aBody
.Return false from this method to eliminate this body from the list of results.
This method is only called by the
World.detect(Convex,...)
methods.- Parameters:
convex
- the convex given to the World.detect methodtransform
- the transform given to the World.detect methodbody
- theBody
whose AABB overlaps the given AABB- Returns:
- boolean true to allow this body to be included in the results
-
allow
boolean allow(Convex convex, Transform transform, Body body, BodyFixture fixture)
Deprecated.Called before theBodyFixture
is tested against the givenConvex
.Return false from this method to eliminate this fixture from the list of results. Return false also improves performance by reducing the number of collision tests.
This method is only called by the
World.detect(Convex,...)
methods.- Parameters:
convex
- the convex given to the World.detect methodtransform
- the transform given to the World.detect methodbody
- theBody
whose AABB overlaps the given AABBfixture
- theBodyFixture
that is about to be tested- Returns:
- boolean true to allow this body to be included in the results
-
-