google / liquidfun

2D physics engine for games

Home Page:http://google.github.io/liquidfun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Particles collide with second fixture at shared vertex

colludium opened this issue · 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

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!