The part of §29's CollisionEvent this module draws: the discriminant and the
manifold. Transcribed from packages/physics/src/events.ts.
The body/collider references and relativeVelocity/totalImpulse are
omitted, not forgotten — a reference is opaque here, and totalImpulse is a
per-pair sum with no point to anchor it to, while contacts[i].impulse has
one (see collectContactImpulses).
The part of §29's
CollisionEventthis module draws: the discriminant and the manifold. Transcribed frompackages/physics/src/events.ts.The body/collider references and
relativeVelocity/totalImpulseare omitted, not forgotten — a reference is opaque here, andtotalImpulseis a per-pair sum with no point to anchor it to, whilecontacts[i].impulsehas one (see collectContactImpulses).