Just a quick note to say the latest patch to the flash version is to provided a growable broadphase. You need never worry about "proxies" and "pairs" again, these used to cause no end of confusion when you suddenly hit the limits.
It ought to provide better performance, too, but I haven't checked. Careful when benchmarking though, as it doesn't create internal objects up front any more, meaning the per CreateShape cost can be higher than it used to be.
This is the first change which changes the flash port away from a strict mirror of the C++. Unless anyone objects, I think the general plan is to slowly introduce such changes to increase performance and make the engine fit closer to what an AS3 coder expects.
no objection from me.
thanks for making those "'proxies' and 'pairs'" simpler, I'm sure it will save me troubles with out me ever realizing it. 😀
I just did a quick diff on my working copy to see what's changed. Maybe I haven't updated in a while but it looks like this is new as well:
1. Edge shapes.
2. Line joints.
Not sure what line joints are but they sound interesting. Anyone care to give an overview?
I was disappointed to see the contact listener functionality hasn't been touched, even though it's been discussed so much. Every time I update I manually make these changes:
1. Contact events also pass as a parameter the b2Contact.
2. b2Contacts are "disable-able" (using the sensor flag).
Good news on the update, not that the AS version of box2D isnt working great already!
Although I did plug the new source into a game i'm creating and it wasn't happy. I spent a few hours trying to tidy up but gave in. I think you guys have been far stricter on what you can get away with this time. (ie having to use getters and setters for variables instead of public access).
I look forward to integrating it into my future projects.
AFG
Yes, we are being stricter, this matches a similar change in Box2D. It's important because it allows changes under the hood without breaking code (after you fix what breaks now :z), which I hope to see more of.
db82: It's likely there are bugs - I've learnt that it's easier to dump buggy code in the repository to force feedback than it is to ask for it. Could you produce a testbed example exhibiting the problem, I'll work from there to isolate where things have gone wrong.
Will do soon as I get time. Hopefully this weekend. Cheers boris
Unfortunately, it's not helpful to know where the error is in this case. The broadphase must have got in an invalid state, and that could have occurred anywhere.