-
- Type Parameters:
T
- thePhysicsBody
type
- All Superinterfaces:
WorldEventListener
- All Known Implementing Classes:
StepListenerAdapter
public interface StepListener<T extends PhysicsBody> extends WorldEventListener
Listener notified before and after a simulation step by thePhysicsWorld
.Modification of the
PhysicsWorld
is permitted in any of these methods.- Since:
- 1.0.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Method Summary
All Methods Instance Methods Abstract 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
void begin(TimeStep step, PhysicsWorld<T,?> world)
Called before a simulation step is performed.- Parameters:
step
- the step informationworld
- the simulationPhysicsWorld
-
updatePerformed
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.- Parameters:
step
- the step informationworld
- the simulationPhysicsWorld
- Since:
- 3.0.1
- See Also:
PhysicsWorld.setUpdateRequired(boolean)
-
postSolve
void postSolve(TimeStep step, PhysicsWorld<T,?> world)
Called after the world has been solved but before new contacts are found.- Parameters:
step
- the step informationworld
- the simulationPhysicsWorld
- Since:
- 3.2.0
-
end
void end(TimeStep step, PhysicsWorld<T,?> world)
Called after a simulation step has been performed.- Parameters:
step
- the step informationworld
- the simulationPhysicsWorld
-
-