google / liquidfun

2D physics engine for games
http://google.github.io/liquidfun
4.73k stars 639 forks source link

Particles collide with second fixture at shared vertex #100

Closed colludium closed 4 years ago

colludium commented 5 years ago

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 4 years ago

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

colludium commented 4 years ago

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