Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Jolt Physics BoxShape to allow for zero-sized boxes #101940

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

mihe
Copy link
Contributor

@mihe mihe commented Jan 22, 2025

Fixes #101893.

This PR is a partial update of thirdparty/jolt_physics, cherry picking only the changes from jrouwe/JoltPhysics@fcea513, which relaxes the error checking when creating a JPH::BoxShape to allow for the case where we have at least one zero-sized axis as well as a convex radius (collision margin) of zero.

This should bring the Jolt Physics module in line with Godot Physics in this regard.

Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Tested locally, it works as expected.

@Repiteo Repiteo merged commit 7625d6d into godotengine:master Jan 24, 2025
19 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Jan 24, 2025

Thanks!

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

Successfully merging this pull request may close these issues.

0 units-thin BoxShape3D has no working collision when using Jolt
3 participants