Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

kcbanner
Copy link
Collaborator

  • Add AddBodiesAbort / AddBodiesFinalize / AddBodiesPrepare
  • Update the reader / writer to the new API

Copy link

@Copilot Copilot AI left a 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, and AddBodiesPrepare
  • Updates I/O handling from deprecated AnyWriter/AnyReader APIs to modern std.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 or learn how to get started.

@hazeycode hazeycode merged commit 87dbfd0 into zig-gamedev:main Sep 14, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants