Module org.dyn4j

Class LinkPostProcessor

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void process​(Convex convex1, Transform transform1, Convex convex2, Transform transform2, Penetration penetration)
      Performs post processing on the narrow-phase collision detection information.
      void process​(Link link, Transform transform1, Convex convex, Transform transform2, Penetration penetration)
      Attempts to use the connectivity information to determine if the normal found in the narrow-phase is valid.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LinkPostProcessor

        public LinkPostProcessor()
    • Method Detail

      • process

        public void process​(Convex convex1,
                            Transform transform1,
                            Convex convex2,
                            Transform transform2,
                            Penetration penetration)
        Description copied from interface: NarrowphasePostProcessor
        Performs post processing on the narrow-phase collision detection information.
        Specified by:
        process in interface NarrowphasePostProcessor
        Parameters:
        convex1 - the first convex shape
        transform1 - the first convex shape's transform
        convex2 - the second convex shape
        transform2 - the second convex shape's transform
        penetration - the narrow-phase collision detection information
      • process

        public void process​(Link link,
                            Transform transform1,
                            Convex convex,
                            Transform transform2,
                            Penetration penetration)
        Attempts to use the connectivity information to determine if the normal found in the narrow-phase is valid. If not, the normal is modified to within the valid range of normals based on the connectivity and the collision depth is adjusted.
        Parameters:
        link - the link
        transform1 - the link's transform
        convex - the other convex
        transform2 - the other convex transform
        penetration - the narrow-phase collision information