RemoveBody runs between steps, so Ymir's call order was not at fault: a
body destroyed after its last step enlarged its proxy, while it was the
only buffered move, left its tree ancestors flagged enlarged and
b3UpdateBroadPhasePairs returned before the rebuild that clears them, so
the next solve aborted in Debug validation (dynamic_tree.c:1081). The
fork now rebuilds on that path (DestroyEnlargedProxyTest).
Add_and_remove_churn_keeps_the_world_valid: 12 seeds of add/remove churn
on a floor; aborts the Debug test host at ebe346a, passes at c790839.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Wet world settles liquid under a box at rest; its recycled contact now takes the patch's
friction (lodur:ruling:wet-friction-on-recycled-contacts). Abi8, Pile and Fluid, which settle
nothing, are unmoved. The fork at 2a43fae reproduces the old Wet hashes.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Delete the post-step coupling (carry, cancel/restore, hard_impulse, k_body and
end_force_scale, add_link_load and tension_diff, ymir_soa_apply_particle_impulses,
ymir_particles_step) and replace it with begin, substep and end. The substep runs in
Box3D's new substep callback (extern/box3d moves to the fork's substep-callback commit),
after the biased solve and before positions integrate: each proxy takes the body's pose
at the substep's start and its solved velocity, every correction is lambda / h^2 and
returns to the body as a velocity change there, and Box3D integrates the body to where
the constraint put it. Particle-body contacts run last in each substep. Link tension is
read by momentum balance from the structural impulses past each link.
The deletion and its replacement share one commit: the step cannot build without both.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
extern/box3d now points at https://eureka.gamecult.org/forge/GameCult/box3d, branch
gamecult/step-normal-impulse (upstream 8441b4a plus the step-impulse field and a static
assert that RELAX_ITERATIONS is 1). Nothing reads the new field yet.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>