Every shape is created with contact and hit events on; the body's user data
is lane + 1. After each step the world rewrites begin, end and hit fact
buffers (lanes and stable ids resolved, fixed capacity, per-kind dropped
counters) and the ContactForce (totalNormalImpulse / dt), ContactCount and
MaterialId lanes. Body desc gains material_id; create takes fact_capacity
and hit_threshold. No allocation inside the step.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Soul low finding on cut-ymir-shape-lanes.s1: a direct native caller could
publish nonzero unused components, contradicting the docs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Size0/1/2 sit beside Kind, written once in add_body, never touched by step,
so a renderer draws every body from one source.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
ABI 2. One body descriptor replaces add_sphere/add_static_box (kinds: sphere, capsule, box, static box).
Revolute, spherical and weld joints created from a world anchor and axis, with joint state lanes (angle,
frame A orientation, relative rotation, relative angular velocity). Per-body force and torque write lanes,
applied before the step then cleared; non-finite values refuse the step. Parent and limb index lanes.
Tests run serially: concurrent b3CreateWorld aborts the host.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
New native object ymir_box3d_soa (ABI 1): gravity, free rotation, spheres and static boxes,
one worker, state copied once per step into contiguous lanes that a caller reads in place.
Managed Box3DSoaWorld/Box3DSoaView expose the lanes as spans. The planar retained session is
unchanged. Tests: fall and rest, in-place reads, bit-for-bit repeat runs.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>