Commit graph Ymir/tests/Ymir.Box3D.Soa.Tests/Box3DSoaGrabTests.cs
Author SHA1 Message Date
Meta Vens
55d0e0f0bd SoA world: joint handles carry a slot generation; ABI 6
DestroyJoint takes (lane, generation) and refuses a stale handle, so a repeated
release cannot destroy a later grab in a reused slot. The ABI number moves to 6
so an old and a new native/managed pair fail closed at construction. Fixes Soul
s2 findings.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 02:41:42 +01:00
Meta Vens
83ea2b8fa4 SoA world: release a grab (destroy_joint tombstones), anchors hold still after arriving
destroy_joint releases a motor joint only; its lane reads Removed and is reused
after a step has passed. free_joint_slots lets a caller check before adding an
anchor. After every step anchor velocity is zeroed so a skipped frame flings
nothing. Fixes Soul s1 findings (no release, anchor keeps moving).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 02:28:47 +01:00
Meta Vens
6edf5d671c SoA grab tests: an anchor reaches its target within the very next step
Kills the mutant that stretched the target time step.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 02:11:46 +01:00
Meta Vens
586361ad67 SoA grab tests: the angular spring follows the anchor's rotation, and off leaves the body free
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 02:07:15 +01:00
Meta Vens
7efcefc8a0 SoA world: kinematic anchors, motor joint spring, point impulses, closest-hit ray (ABI 5)
Anchor body kind (kinematic, no shape) with set_anchor_target; Motor joint kind
with position springs bounded by max force and torque, taking the slot of the
joint desc's reserved float; apply_impulse at a world point; cast_ray_closest.
Ymir executes the commands and decides nothing about grabbing.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 02:02:14 +01:00