Skip to content

Fix to issue causing incorrect b2ShapeDistance behaviour#22

Open
MaffDev wants to merge 1 commit intophaserjs:mainfrom
MaffDev:ShapeDistance-missing-clone()-fix
Open

Fix to issue causing incorrect b2ShapeDistance behaviour#22
MaffDev wants to merge 1 commit intophaserjs:mainfrom
MaffDev:ShapeDistance-missing-clone()-fix

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.

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.

3 participants