AutoMovie API
    Preparing search index...
    Outcome:
        | { depth: number; kind: "stick" }
        | {
            friction: number;
            kind: "bounce";
            restitution: number;
            roll?: { radius: number; resistance: number };
        }
        | { kind: "roll"; resistance: number }
        | { kind: "pass"; loss: number }

    Caller-selected response to a resolved projectile contact.

    kind separates stick depth in metres, bounce restitution/friction, roll resistance and pass speed loss; coefficients are dimensionless except depth and optional roll radius. projectileContinue applies the chosen analytical response using the contact's world normal; it does not select an outcome from material names or modify the original flight. The producer checks finite nonnegative depth/friction/resistance and restitution/loss in [0,1] on their branch. A supplied bounce-to-roll radius and resistance are both admitted before deciding whether rolling is selected.

    Type Declaration

    • { depth: number; kind: "stick" }
      • depth: number

        How far its point goes on into the body, metres.

      • kind: "stick"

        It stops in the struck body.

    • {
          friction: number;
          kind: "bounce";
          restitution: number;
          roll?: { radius: number; resistance: number };
      }
      • friction: number

        Coulomb's friction coefficient of the contact.

      • kind: "bounce"

        It rebounds.

      • restitution: number

        Newton's coefficient of restitution of the normal speed, 0 to 1.

      • Optionalroll?: { radius: number; resistance: number }

        Roll instead once a rebound rises less than radius, at the rolling resistance resistance.

        • radius: number

          Finite nonnegative radius in metres used as the strict rebound-height threshold; admitted whenever roll is supplied, even when no roll is selected.

        • resistance: number

          Dimensionless finite nonnegative rolling resistance; admitted whenever this bounce supplies roll, before selecting its continuation.

    • { kind: "roll"; resistance: number }
      • kind: "roll"

        It rolls on the surface.

      • resistance: number

        The rolling-resistance coefficient, dimensionless.

    • { kind: "pass"; loss: number }
      • kind: "pass"

        It passes through.

      • loss: number

        The share of its speed it loses, 0 to 1.