- Object
-
- TimeOfImpactAdapter
-
- All Implemented Interfaces:
TimeOfImpactListener
,Listener
@Deprecated public class TimeOfImpactAdapter extends Object implements TimeOfImpactListener, Listener
Deprecated.Deprecated in 4.0.0. Use the TimeOfImpactListenerAdapter in the world package instead.Convenience class for implementing theTimeOfImpactListener
interface.- Since:
- 1.2.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Constructor Summary
Constructors Constructor Description TimeOfImpactAdapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
collision(Body body1, BodyFixture fixture1, Body body2, BodyFixture fixture2, TimeOfImpact toi)
Deprecated.Called when a time of impact has been detected between two bodies.
-
-
-
Method Detail
-
collision
public boolean collision(Body body1, BodyFixture fixture1, Body body2, BodyFixture fixture2, TimeOfImpact toi)
Deprecated.Description copied from interface:TimeOfImpactListener
Called when a time of impact has been detected between two bodies.Returning true from this method indicates that the collision of these two
Body
s should be processed (solved).The values of the
toi
parameter can be changed in this method.- Specified by:
collision
in interfaceTimeOfImpactListener
- Parameters:
body1
- the firstBody
fixture1
- the firstBody
's fixturebody2
- the secondBody
fixture2
- the secondBody
's fixturetoi
- theTimeOfImpact
- Returns:
- boolean true if the collision should be handled
-
-