Commit graph Ymir/native/Ymir.Box3D/ymir_box3d.c
Author SHA1 Message Date
Meta Vens
99f1d0bfaf SoA world: exact per-step contact impulse per body and per hit; ABI 7
contact_impulse (N s) replaces last_substep_force in the same lane slot: the sum of
Box3D's stepNormalImpulse over the body's touching manifold points, the normal impulse
contacts delivered over the whole step. The hit fact's impulse replaces impulse_estimate in
the same slot: the same sum over the manifold of the hit's shape pair. The approach-speed
formula (ymir_soa_hit_impulse) and the last-sub-step scaling are gone, with the tests that
pinned their estimates; the new tests check the lane and the hit against momentum change
per step on a jointed forearm (5 kg ball, 0.3 g BB, arm onto a slab), drops, rest and two
free bodies. Build id names the fork commit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 02:57:48 +01:00
Meta Vens
db09805aba Serialize Box3D world create and destroy behind one process-wide lock
b3CreateWorld/b3DestroyWorld scan and rewrite Box3D's global world pool with
no synchronization; concurrent creation crashed the host (0xC000001D). All
five call sites (SoA world, retained session, pair step, torque lifetime) now
go through one lock owned by ymir_box3d.c (SRWLOCK on Windows, pthread mutex
elsewhere). Adds a multi-thread create/step/dispose test, which aborts the
test host without the lock; drops the serial-test assembly attribute.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 21:11:08 +01:00
Meta Vens
949f98af52 Add replay-backed retained session checkpoints 2026-07-15 08:08:02 +01:00
Meta Vens
e49fe42ef9 Expose Box3D collision profiles through Ymir 2026-07-14 22:01:19 +01:00
Meta Vens
82ddfc98a6 Add retained Box3D session contract 2026-07-14 21:17:41 +01:00
Meta Vens
721eee0656 Replace managed physics with Box3D runtime boundary 2026-07-14 20:33:05 +01:00
Meta Vens
0ffad2a4f0 Cover Box3D world-step semantics 2026-07-14 19:25:02 +01:00
Meta Vens
6d13a2cb97 Add pinned Box3D parity oracle 2026-07-14 19:20:15 +01:00