Updates in SVN v96

Hey Boris!

This latest revision seems to be considerably more stable for arbitrary polygon shapes--I was having some awful troubles with v92, which have now vanished... MANY THANKS!

I notice that b2Settings.b2_maxPolygonVertices has been removed! So now I'm constructing convex hulls with as many as 25 vertices and having no trouble whatsoever.

I am however seeing a problem with weld joints-- I've got two objects welded together; as soon as the simulation begins, the two objects are suddenly positioned at (0,0). I tried setting both objects as sleeping, and they stay where they should when the simulation starts. However, as soon as I wake them up, they're again moved to (0,0).

Is there a log somewhere about the latest changes on the SVN?

Again, many thanks for all your hard work.
Thanks for such a warm thanks.

I'm not sure what I've done re-polygon stability, though there have been the occasional bugfix.

What on earth do you want 25 sided hulls for? I removed it because it's neater gone, with no cost, but I wasn't expecting any actual use for it.

I'll look into your weld joint issue. Probably something stupid.

There's the SVN log of what's been checked in. That usually mentions the important changes. Other than that, I've got basically no notes.
I don't see anything obviously wrong, so you'll have to create a testbed demonstrating a problem.
Quote:
I'm not sure what I've done re-polygon stability, though there have been the occasional bugfix.

Ah ha. Yes, I wondered if that might turn out to be the case. 😀

Quote:
What on earth do you want 25 sided hulls for?

😆 I'm working on a library that allows one to turn any object on the stage into a physics object, merely by applying a base class to it. A convex hull is automatically traced around it and the resulting shape is added to the Box2D world. This, along with a variety of other options, allows for limitless shapes to be constructed without having to write a single line of code. Clearly, the result is that I'm pushing Box2D in a direction that most other projects do not. The results have shown up some problems with how Box2D handles arbitrary polygons. However, with the latest updates (somewhere between v92 and v96) those problems have almost completely disappeared--along with some major adjustments to the settings.

I *think* the explanation for the issues I was having previously is that with a vertex limit, my code had to slice the hull up into pieces. Inevitably, a few of those slices would be *very* thin--and it's probably those thin polygons that caused the issues. That's my guess.

By the way, some optimizations I've added to my convex hull algorithm generally don't produce polygons with more than about 15 points. I turned those off to see how stability held up--hence the 25 sided hull test.

...thanks for the Weld Joint fix!

...Oh yeah, of course there's a log on SourceForge! Doh!
...actually, weld joints seem to still be broken (in SVN v99)
You must give me a testbed example. I don't see any wrong with the testbed example in SVN.
Sorry about that. Seems I must have gotten some source files confused or something. Weld joints are working fine now after all.

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