Skip to content

Fix to issue causing incorrect b2ShapeDistance behaviour #22

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MaffDev
Copy link

@MaffDev MaffDev commented Feb 16, 2025

Added a missing .clone() in the b2Simplex2() method used by b2ShapeDistance. It was instead copying the reference from one vertex to another, causing intermittent inaccurate behaviour.

@photonstorm
Copy link
Contributor

Thanks, we've got a huge project launch next week and then we'll do a new Box2D release after that, with these (and other) changes merged in, so please give us a few days to check this before merging.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants