Module org.dyn4j

Interface TimeOfImpactSolver<T extends PhysicsBody>

  • Type Parameters:
    T - the PhysicsBody type
    All Known Implementing Classes:
    ForceCollisionTimeOfImpactSolver

    public interface TimeOfImpactSolver<T extends PhysicsBody>
    Represents a position solver for a pair of PhysicsBodys who came in contact during a time step but where not detected by the discrete collision detectors.
    Since:
    4.0.0
    Version:
    4.0.0
    Author:
    William Bittle
    • Method Detail

      • solve

        void solve​(T body1,
                   T body2,
                   TimeOfImpact timeOfImpact,
                   Settings settings)
        Handles the missed collision between the given bodies using the given time of impact.
        Parameters:
        body1 - the first PhysicsBody
        body2 - the second PhysicsBody
        timeOfImpact - the TimeOfImpact
        settings - the current world settings