- Notifications
You must be signed in to change notification settings - Fork13
New writer API, batch body adding bindings#16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
kcbanner commentedSep 11, 2025
- Add AddBodiesAbort / AddBodiesFinalize / AddBodiesPrepare
- Update the reader / writer to the new API
- Update the reader / writer to the new API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Pull Request Overview
This PR updates the Zig physics library to support a new batch body adding API and modernizes I/O handling. The changes introduce a three-phase body addition system (Prepare/Finalize/Abort) for better performance when adding multiple bodies at once, and update the library to use newer Zig I/O APIs.
- Adds new batch body operations:
AddBodiesAbort,AddBodiesFinalize, andAddBodiesPrepare - Updates I/O handling from deprecated
AnyWriter/AnyReaderAPIs to modernstd.Io.Writer/std.Io.Reader - Modernizes ArrayList initialization patterns and argument ordering
- Updates minimum Zig version requirement to 0.15.1
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/zphysics.zig | Main implementation changes including new batch API bindings, I/O modernization, and test updates |
| libs/JoltC/JoltPhysicsC.h | C header additions for new batch body interface functions |
| libs/JoltC/JoltPhysicsC.cpp | C++ implementation of the new batch body operations |
| build.zig.zon | Updates minimum Zig version requirement |
Tip: Customize your code reviews with copilot-instructions.md.Create the file orlearn how to get started.
Uh oh!
There was an error while loading.Please reload this page.
87dbfd0 intozig-gamedev:mainUh oh!
There was an error while loading.Please reload this page.