threejs-worldgen
    Preparing search index...

    Function mpmTimeStep

    • Substeps and substep length for a frame of frameDt seconds (capped at 0.1 s): at least substeps, as many more as mpmStableStep needs, at most maxSubsteps (then dt is the stable step and the frame runs slow).

      Parameters

      Returns { dt: number; substeps: number }