Skip to content

vendor:box2d add GetVersion and SetLogFcn#6367

Open
Faker-09 wants to merge 1 commit intoodin-lang:masterfrom
Faker-09:box2d_GetVersion
Open

vendor:box2d add GetVersion and SetLogFcn#6367
Faker-09 wants to merge 1 commit intoodin-lang:masterfrom
Faker-09:box2d_GetVersion

Conversation

@Faker-09
Copy link
Contributor

@Faker-09 Faker-09 commented Mar 3, 2026

This box2d change:

  • Adds a binding for GetVersion
  • Adds a binding SetLogFcn which is left commented out in preparation for the 3.1.2 release.
  • Adds a comment to DestroyWorld, "This efficiently destroys all bodies, shapes, and joints in the simulation." Taken from box2d.org
  • Aligns formatting in that area of the file.

@Faker-09 Faker-09 changed the title core:vendor/box2d add GetVersion and SetLogFcn vendor:box2d add GetVersion and SetLogFcn Mar 3, 2026
AssertFcn :: #type proc "c" (condition, file_name: cstring, line_number: i32) -> i32

// Prototype for user log callback. Used to log warnings.
//LogFcn :: #type proc "c" (message: cstring)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this commented out?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LogFcn was added to Box2d recently and is not available until the next release version 3.1.2. We are currently using 3.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants