Module org.dyn4j

Class ContactAdapter

    • Constructor Detail

      • ContactAdapter

        public ContactAdapter()
    • Method Detail

      • sensed

        @Deprecated
        public void sensed​(ContactPoint point)
        Deprecated.
        Description copied from interface: ContactListener
        Called when a contact has been sensed between two Bodys, where one or both Body's BodyFixtures are sensors.
        Specified by:
        sensed in interface ContactListener
        Parameters:
        point - the contact point that was sensed
      • begin

        public boolean begin​(ContactPoint point)
        Description copied from interface: ContactListener
        Called when two BodyFixtures begin to overlap, generating a contact point.
        Specified by:
        begin in interface ContactListener
        Parameters:
        point - the contact point that was added
        Returns:
        boolean true if the contact should remain enabled
      • preSolve

        public boolean preSolve​(ContactPoint point)
        Description copied from interface: ContactListener
        Called before contact constraints are solved.
        Specified by:
        preSolve in interface ContactListener
        Parameters:
        point - the contact point
        Returns:
        boolean true if the contact should remain enabled