AutoMovie API
    Preparing search index...

    Suggest how a collision resolves: run resolveImpact for the impulse, bridge it to a recoil push, and (when a struck chain + skeleton are given) bound that push by joint ROM into a flinch pose via impactRecoil. This is the reusable core the pipeline (and detectBodyCollision) attaches to a contact warning; it wires together resolveImpact and impactRecoil.

    type IProps = {
        a: IAutoMovieImpactBodyState;
        b: IAutoMovieImpactBodyState;
        chain?: AutoMovieHumanoidBone[];
        falloff?: number;
        gainDegPerImpulse: number;
        normal: IAutoMovieVector3;
        skeleton?: IAutoMovieSkeleton;
    }
    Index

    The struck actor's colliding body (mass, velocity, material).

    The other colliding body.

    Struck bone chain (contact bone toward the body), for the flinch pose.

    falloff?: number

    Flinch falloff down the chain. Defaults to impactRecoil's default.

    gainDegPerImpulse: number

    Degrees of recoil flexion per unit impulse.

    Unit contact normal from a toward b.

    Skeleton the flinch is bounded against.