Skip to content

Fix b2World_OverlapCapsule incorrect reference to center #23

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

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

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