Module org.dyn4j

Class LinkPostProcessor

    • 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
        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,
                            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.
        link - the link
        penetration - the narrow-phase collision information