# Pinned Box3D Fork Notes ## Authority Box3D v0.1.0 is Ymir's rigid-body physics implementation (`extern/box3d` submodule), pinned at the GameCult fork commit `c790839` (`https://eureka.gamecult.org/forge/GameCult/box3d`, branch `gamecult/destroy-enlarged-proxy`). The fork is upstream `8441b4a06d6d09dcfb0b0f704df4d847d1437b92` plus: - `b3ManifoldPoint.stepNormalImpulse`: observed field recording the normal impulse each contact point applied over the whole step, with a static assert that `RELAX_ITERATIONS` is 1 so the sum is exact. - Substep callback (`b3World_SetSubStepCallback`, with `b3Body_GetSubStepState` and `b3Body_ApplySubStepImpulse`, valid only inside the callback) used by the particle phase (`ymir_particles.c`) after the biased solve and before positions integrate. - Contact friction hook (`ebe346a`, see `docs/soa-world.md`). - Broad-phase fix (`DestroyEnlargedProxyTest`): rebuilding when the move buffer is empty clears stale enlarged flags on tree ancestors after proxy destruction. To rebase onto a newer Box3D, re-apply those commits, re-run `tests/Ymir.Box3D.Soa.Tests`, and compare pile state hashes against the upstream build. Box3D is MIT licensed; its license is retained in `extern/box3d/LICENSE`.