Module org.dyn4j

Interface MinkowskiPenetrationSolver

  • All Known Implementing Classes:
    Epa

    public interface MinkowskiPenetrationSolver
    Interface representing a sub algorithm for finding the penetration vector and depth using properties of the MinkowskiSum and the Gjk termination information.

    This interface is primarily designed to work with Gjk.

    Since:
    1.0.0
    Version:
    1.0.3
    Author:
    William Bittle
    • Method Detail

      • getPenetration

        void getPenetration​(List<Vector2> simplex,
                            MinkowskiSum minkowskiSum,
                            Penetration penetration)
        Returns the penetration vector and depth in the given Penetration object

        NOTE: It's the responsibility of the caller to clear the given Penetration object before calling this method. given the final simplex from Gjk and MinkowskiSum.

        Parameters:
        simplex - the simplex containing the origin
        minkowskiSum - the MinkowskiSum
        penetration - the Penetration object to fill