Stuck on terrain edges

Quote:
are there any limitations in regards to how many of these edge chains you can use or how big they can be?


Each edge in the edge chain is created as a separate shape. So unless you're using the latest version of Box2DFlash (which has a growable broadphase, thanks to BorisTheBrave), the total number of edges (plus all your other shapes) must be less than b2Settings.b2_maxProxies. (by default, 512)

There is no limit on how big static shapes can be, including edges. But static shapes should not be too small. They should be more than twice as long across as b2Settings.b2_toiSlop, so larger than 0.08 meters.

Dynamic shapes have more strict size requirements, but I'm assuming you're not intending to use edges as dynamic shapes.

There are, of course, memory and performance limitations, but probably nothing unexpected.

Original thread: https://box2d.org/forum/viewtopic.php?t=3069