Documentation
    Preparing search index...

    Function collectContactImpulses

    • The honest half of §113's "force vectors": one segment per contact, from pointOnA along the contact normal, scaled by that contact's normal impulse (newton-seconds, §29 ContactPoint.impulse).

      Applied forces are not readable. SolverBodyAccess has applyForce, applyForceAtPoint, applyTorque, applyImpulse, applyImpulseAtPoint, applyAngularImpulse, and resetForces — seven writes and no getter; the seam is write-only for the force channel, and §26's command buffers live in @fourjs/physics, which this package cannot import. What is readable is the impulse the solver actually applied at each contact, which is the force quantity a collision overlay wants anyway. Divide by the fixed delta for newtons — the same conversion PhysicsWorld does for §28 break thresholds — or leave scale in impulse units and read it as relative.

      See DEBUG_DRAW_STAGED for applied-force vectors.

      Returns the number of segments appended.

      Parameters

      Returns number