Module org.dyn4j

Interface ContactConstraintSolver

  • All Known Implementing Classes:
    SequentialImpulses

    public interface ContactConstraintSolver
    Represents an impulse/velocity based rigid Body physics collision resolver.
    Since:
    3.2.0
    Version:
    3.2.0
    Author:
    William Bittle
    • Method Detail

      • initialize

        void initialize​(java.util.List<ContactConstraint> contactConstraints,
                        Step step,
                        Settings settings)
        Performs initialization of the contact constraints.
        Parameters:
        contactConstraints - the contact constraints to solve
        step - the time step information
        settings - the current settings
      • solveVelocityContraints

        void solveVelocityContraints​(java.util.List<ContactConstraint> contactConstraints,
                                     Step step,
                                     Settings settings)
        Solves the ContactConstraints on the velocity level.
        Parameters:
        contactConstraints - the contact constraints to solve
        step - the time step information
        settings - the current settings
      • solvePositionContraints

        boolean solvePositionContraints​(java.util.List<ContactConstraint> contactConstraints,
                                        Step step,
                                        Settings settings)
        Solves the ContactConstraints on the position level.
        Parameters:
        contactConstraints - the contact constraints to solve
        step - the time step information
        settings - the current settings
        Returns:
        boolean true if the constraints have been solved