Skip to content

Conversation

a-day-old-bagel
Copy link
Member

@a-day-old-bagel a-day-old-bagel commented Aug 12, 2025

During some of the updates of the last few months, the CharacterContactListener struct in JoltPhysicsC.h was not updated to reflect the upstream changes. The mismatch would cause crashes if this type of listener was used.

It should be fixed now, but I do wonder if there aren't more places like this in zphysics which have been a bit left behind. The tests didn't catch this one because the mismatch is between JoltPhysicsC and Jolt proper, but not between zphysics and JoltPhysicsC, and this structure appears to be missing from JoltPhysicsC_Tests.c (probably should fix that too...).

…sts for FixedConstraintSettings, tweaked casts for TwoBodyConstraintSettings to match ShapeSettings pattern.
@kcbanner
Copy link
Collaborator

kcbanner commented Sep 5, 2025

This looks good to me, nice catch on that. Yea, I think automated validation of the C VTable matching the C++ one would be nice, but I'm not sure what that would look like. I suppose if there was a test that called every method, but that might be tedious.

@hazeycode hazeycode merged commit 1b4717b into zig-gamedev:main Sep 7, 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.

3 participants