Commit graph Ymir/extern
Author SHA1 Message Date
Meta Vens
66f9440a36 Box3D pin c790839: rebuild the broad-phase trees on an empty move buffer
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>
2026-11-25 23:30:43 +01:00
Meta Vens
908a68782b Box3D fork: pin the hook on recycled contacts (ebe346a); re-pin the Wet hashes
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>
2026-11-25 06:38:25 +01:00
Meta Vens
c0dde04f01 Box3D fork: pin the contact friction hook (2a43fae)
No caller yet: a world steps as before.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 05:47:03 +01:00
Meta Vens
66179d68b4 SoA particles r2: chains couple to bodies inside Box3D's substep
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>
2026-11-23 04:18:58 +01:00
Meta Vens
72e9d3e71e Box3D submodule moves to the GameCult fork with stepNormalImpulse
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>
2026-11-20 02:57:48 +01:00
Meta Vens
6d13a2cb97 Add pinned Box3D parity oracle 2026-07-14 19:20:15 +01:00