Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
hazeycode merged 2 commits intozig-gamedev:mainfromkcbanner:writer_fixup
Sep 14, 2025

Conversation

@kcbanner
Copy link
Collaborator

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

hazeycode reacted with heart emoji
Copy link

CopilotAI 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, andAddBodiesPrepare
  • Updates I/O handling from deprecatedAnyWriter/AnyReader APIs 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.

FileDescription
src/zphysics.zigMain implementation changes including new batch API bindings, I/O modernization, and test updates
libs/JoltC/JoltPhysicsC.hC header additions for new batch body interface functions
libs/JoltC/JoltPhysicsC.cppC++ implementation of the new batch body operations
build.zig.zonUpdates minimum Zig version requirement

Tip: Customize your code reviews with copilot-instructions.md.Create the file orlearn how to get started.

@hazeycodehazeycode merged commit87dbfd0 intozig-gamedev:mainSep 14, 2025
3 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@hazeycodehazeycodehazeycode left review comments

Copilot code reviewCopilotCopilot left review comments

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@kcbanner@hazeycode

[8]ページ先頭

©2009-2025 Movatter.jp