Skip to content

Fix b2World_OverlapCapsule incorrect reference to center#23

Open
mikuso wants to merge 1 commit intophaserjs:mainfrom
mikuso:fix-1
Open

Fix b2World_OverlapCapsule incorrect reference to center#23
mikuso wants to merge 1 commit intophaserjs:mainfrom
mikuso:fix-1

Conversation

@mikuso
Copy link
Contributor

@mikuso mikuso commented Feb 20, 2025

This is a quick one-character fix to a broken function.

Explanation:

b2World_OverlapCapsule in world_c.js makes an invalid reference to a non-existent center property on b2Capsule.

The b2Capsule structure contains center1 and center2 properties, but no center property. (this is correct, per the original code)

The original code for b2World_OverlapCapsule uses the center1 property of the capsule instead.

This PR corrects this reference in world_c.js and brings parity to the original source.

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.

1 participant