Documentation
    Preparing search index...

    Function recordSolverStatistics

    • Fills activeBodies and contacts from the §113 solver statistics this package already computes (solverStatistics, debug-draw.ts).

      §84's "active bodies" is §32's awake set — the bodies actually being integrated — which is precisely SolverStatistics.awakeCount. Nothing else in SolverStatistics maps onto a §84 counter: bodyCount, colliderCount, and maxBodyId are solver inventory rather than frame cost; contactCount is the one other §84 counter this walk can reach when the adapter implements DebugBodyAccess.countContacts.

      const solver = solverStatistics(bodyAccess, solverOut);
      recordSolverStatistics(app.stats, solver);

      Parameters

      Returns void