Module org.dyn4j

Interface SolvedContact

  • All Superinterfaces:
    Contact

    public interface SolvedContact
    extends Contact
    Represents a contact that has been solved.
    Since:
    4.0.0
    Version:
    5.0.1
    Author:
    William Bittle
    • Method Detail

      • getNormalImpulse

        double getNormalImpulse()
        Returns the accumulated normal impulse applied at this point.
        Returns:
        double the accumulated normal impulse
      • getTangentialImpulse

        double getTangentialImpulse()
        Returns the accumulated tangential impulse applied at this point.
        Returns:
        double the accumulated tangential impulse
      • isSolved

        boolean isSolved()
        Returns true if this contact was solved.

        A contact is only solved if it's been through the contact solver. This means that any new contact will return false. It also means that contacts that are part of a sensor ContactConstraint will return false as will manually disabled ContactConstraints. One last situation is when the contact is part of a ContactConstraint that has linearly dependent contacts - one of them will be solved and the other will be ignored. disabled.

        Returns:
        boolean
        Since:
        4.0.0