- Object
-
- StepListenerAdapter<T>
-
- Type Parameters:
T
- thePhysicsBody
type
- All Implemented Interfaces:
StepListener<T>
,WorldEventListener
public class StepListenerAdapter<T extends PhysicsBody> extends Object implements StepListener<T>
Convenience class for implementing theStepListener
interface.- Since:
- 1.0.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Constructor Summary
Constructors Constructor Description StepListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
begin(TimeStep step, PhysicsWorld<T,?> world)
Called before a simulation step is performed.void
end(TimeStep step, PhysicsWorld<T,?> world)
Called after a simulation step has been performed.void
postSolve(TimeStep step, PhysicsWorld<T,?> world)
Called after the world has been solved but before new contacts are found.void
updatePerformed(TimeStep step, PhysicsWorld<T,?> world)
Called after collision detection and contact updates have been performed due to a call to thePhysicsWorld.setUpdateRequired(boolean)
passing true.
-
-
-
Method Detail
-
begin
public void begin(TimeStep step, PhysicsWorld<T,?> world)
Description copied from interface:StepListener
Called before a simulation step is performed.- Specified by:
begin
in interfaceStepListener<T extends PhysicsBody>
- Parameters:
step
- the step informationworld
- the simulationPhysicsWorld
-
updatePerformed
public void updatePerformed(TimeStep step, PhysicsWorld<T,?> world)
Description copied from interface:StepListener
Called after collision detection and contact updates have been performed due to a call to thePhysicsWorld.setUpdateRequired(boolean)
passing true.- Specified by:
updatePerformed
in interfaceStepListener<T extends PhysicsBody>
- Parameters:
step
- the step informationworld
- the simulationPhysicsWorld
- See Also:
PhysicsWorld.setUpdateRequired(boolean)
-
postSolve
public void postSolve(TimeStep step, PhysicsWorld<T,?> world)
Description copied from interface:StepListener
Called after the world has been solved but before new contacts are found.- Specified by:
postSolve
in interfaceStepListener<T extends PhysicsBody>
- Parameters:
step
- the step informationworld
- the simulationPhysicsWorld
-
end
public void end(TimeStep step, PhysicsWorld<T,?> world)
Description copied from interface:StepListener
Called after a simulation step has been performed.- Specified by:
end
in interfaceStepListener<T extends PhysicsBody>
- Parameters:
step
- the step informationworld
- the simulationPhysicsWorld
-
-