Vendor Box3D and build it into .tools/ (#68) #100
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crowmaki/cinnabar!100
Loading…
Reference in a new issue
No description provided.
Delete branch "box3d-vendor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #68. Part of #67.
What
plugins/box3d/vendor/vendors the upstream Box3D C sources with the MIT licence, pinned at commit3fc20f5b453ba9e14cdf54ecafa87a2a4bcdf53c(2026-07-30). That is the exact commit Odin'svendor:box3dsnapshot was taken from, verified by blob-hash match and a full diff.plugins/box3d/box3d/is the bindings package, copied from Odin'svendor:box3d. The header recordsBOX3D_VERSIONandBOX3D_COMMITand imports.tools/box3d/0.1.0/lib/box3d.lib. TheDOUBLE_PRECISIONswitch is collapsed so the ABI is fixed at f32; the foreign import stays exported because the other five binding files bind against it.just fetch-box3dcompiles the vendored sources as C17 with clang, archives them with llvm-lib into.tools/box3d/0.1.0/lib/, and refuses output lackingb3CreateWorld. A second run reports the library already present. NeitherBOX3D_DISABLE_SIMDnorBOX3D_DOUBLE_PRECISIONis defined anywhere.tests/core/box3d_test.odincreates a world with default gravity, drops a dynamic box hull, steps once, sees it fall, and destroys the body.packageslist, the justfile header, the AGENTS.md recipe table and Box3D link, and ADR-0016's build description are updated.Verification
just fetch-box3d(twice),just check, andjust testall pass; the core suite runs 336 tests.