crashcat docs
    Preparing search index...

    Type Alias CollisionEstimationResult

    result of estimating collision response between two bodies, contains predicted post-collision velocities and per-contact-point impulses

    type CollisionEstimationResult = {
        angularVelocity1: Vec3;
        angularVelocity2: Vec3;
        impulses: CollisionEstimationImpulse[];
        linearVelocity1: Vec3;
        linearVelocity2: Vec3;
        numImpulses: number;
        tangent1: Vec3;
        tangent2: Vec3;
    }
    Index

    Properties

    angularVelocity1: Vec3

    predicted post-collision angular velocity of body 1

    angularVelocity2: Vec3

    predicted post-collision angular velocity of body 2

    impulses for each contact point

    linearVelocity1: Vec3

    predicted post-collision linear velocity of body 1

    linearVelocity2: Vec3

    predicted post-collision linear velocity of body 2

    numImpulses: number

    number of active impulses (matches manifold.numContactPoints)

    tangent1: Vec3

    first friction tangent direction (perpendicular to normal)

    tangent2: Vec3

    second friction tangent direction (tangent1 × normal)