Module org.dyn4j

Class SequentialImpulses

  • All Implemented Interfaces:
    ContactConstraintSolver

    public class SequentialImpulses
    extends java.lang.Object
    implements ContactConstraintSolver
    Represents an impulse based rigid Body physics collision resolver.
    Since:
    3.2.0
    Version:
    3.4.0
    Author:
    William Bittle
    • Constructor Detail

      • SequentialImpulses

        public SequentialImpulses()
    • Method Detail

      • initialize

        public void initialize​(java.util.List<ContactConstraint> contactConstraints,
                               Step step,
                               Settings settings)
        Description copied from interface: ContactConstraintSolver
        Performs initialization of the contact constraints.
        Specified by:
        initialize in interface ContactConstraintSolver
        Parameters:
        contactConstraints - the contact constraints to solve
        step - the time step information
        settings - the current settings
      • warmStart

        protected void warmStart​(java.util.List<ContactConstraint> contactConstraints,
                                 Step step,
                                 Settings settings)
        Performs warm-starting of the contact constraints.
        Parameters:
        contactConstraints - the contact constraints to solve
        step - the time step information
        settings - the current settings