Box3D, an open source 3D physics engine
a day ago
- #Physics Engine
- #Open Source
- #Game Development
- Box3D is an open source 3D physics engine, now available on GitHub.
- It is a fork of Box2D, extended with features for 3D games like triangle mesh, height-field, and baked compound collision.
- Core architecture retains C API, C17 source, sub-stepping solver, continuous collision, wide SIMD, multi-threading hooks, and cross-platform determinism.
- Developed for the game The Legend of California due to issues with Unreal's native physics engine, such as lack of gyroscopic torque support and erratic tree movement.
- Integration was achieved by forking Rubikon-Lite (from Valve's Dirk Gregorius) and transforming it into Box3D by replacing APIs with Box2D code.
- Box3D is optimized for performance, including custom solutions for falling trees, voxel collision mesh building, and streaming compound collision for large structures.
- Created to sustain personal knowledge and sanity, allowing open source development supported by Kintsugiyama as part of day job.
- Box3D is used in The Legend of California, s&box, Esoterica, and a 1000-player space game.
- Currently alpha software, with plans for v0.1 release, more testing, documentation, and feature enhancements like character movement and joint solver.
- Updates and community discussions will be via the author's site and Box2D Discord server, with no separate website or Discord.