google/liquidfun

Particles collide with second fixture at shared vertex

colludium opened this issue · 2 comments

When particles move along a fixture and one of the vertices is shared with another fixture, the particles then behave as if they collide with the second fixture.

particle vertex collision

Here's the example in full:

liquidfun_particle_bug.zip

Sheph commented

Looks like you need to use something like this:
b2ParticleSystemDef ps_def;
ps_def.strictContactCheck = true;

@Sheph - Awesome, thank you. I built this for JS and using SetStrictContactCheck(true) fixes the problem. Not a bug!