AutoMovie API
    Preparing search index...

    Variable resolveImpactConst

    resolveImpact: (
        a: IAutoMovieImpactBodyState,
        b: IAutoMovieImpactBodyState,
        normal: IAutoMovieVector3,
    ) => IAutoMovieImpact = ...

    Resolve a collision between bodies a and b across unit contact normal (pointing from a to b) into an abstracted IAutoMovieImpact.

    Impulse is the textbook normal response, jn = (1+e)·closing / (1/mₐ + 1/m_b), but the effective restitution and a qualitative kind come from a cheap, deterministic material heuristic rather than a contact solver: a fast strike into a soft, penetrable body embeds (no rebound) or, if very fast and very soft, passes through (only a fraction of the momentum transfers); a hard, bouncy pair bounces; otherwise it deflects. Bodies already separating yield a pure deflect with no impulse.