google / liquidfun

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

b2ParticleGroupDef.shape limited to quad? #87

Closed colludium closed 6 years ago

colludium commented 6 years ago

I've been experimenting with the javascript version (editing the testbed code) and it appears that only shapes with 4 vertices are acceptable, even if the shape is degenerate (with 2 vertices the same to create a triangle). Is this a limitation of the library, or is it a bug? I was hoping for a few more vertices... Thanks.

colludium commented 6 years ago

Digging into the full library and I see that this is a limitation/feature of the library (in javascript, at least).