Module org.dyn4j

Interface StepListener

  • All Superinterfaces:
    Listener
    All Known Implementing Classes:
    StepAdapter

    public interface StepListener
    extends Listener
    Listener notified before and after a simulation step by the World.

    Modification of the World is permitted in any of these methods.

    Since:
    1.0.0
    Version:
    3.1.0
    Author:
    William Bittle
    • Method Detail

      • begin

        void begin​(Step step,
                   World world)
        Called before a simulation step is performed.
        Parameters:
        step - the step information
        world - the simulation World
      • postSolve

        void postSolve​(Step step,
                       World world)
        Called after the world has been solved but before new contacts are found.
        Parameters:
        step - the step information
        world - the simulation World
        Since:
        3.2.0
      • end

        void end​(Step step,
                 World world)
        Called after a simulation step has been performed.
        Parameters:
        step - the step information
        world - the simulation World