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

b2_fixtureContactListenerParticle flag works incorrectly when specified not for all particles #98

Open
Blttrr opened this issue Feb 5, 2019 · 1 comment

Comments

@Blttrr
Copy link

Blttrr commented Feb 5, 2019

If there are particles with b2_fixtureContactListenerParticle flag in the system, contact listener receives BeginContact callbacks for all particles - even for particles without this flag. This happens because NotifyBodyContactListenerPostContact method doesn't take b2_fixtureContactListenerParticle flag into account.

Even worse, for particles without b2_fixtureContactListenerParticle flag, BeginContact callback is being called multiple times per contact - filtering out old contacts doesn't work.

The same bug applies to b2_particleContactListenerParticle and NotifyContactListenerPostContact method.

@Manamongods
Copy link

This should fix it: #113

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

No branches or pull requests

2 participants