2.0.1 Optimized (UPDATE: Now with less fail!)

@boxbuilder-

"Static" and "Dynamic" have been dropped from the world body factory. It's now just:

Code:
world.CreateBody(bodyDef);


If you want the body to be dynamic, just assign it a mass.

My branch is still a work-in-progress so many things will change between now and the first release. I can't really recommend using it right now. I will have to rewrite all of the examples if I want them to work with my branch. For example, the above example will have "CreateBody" with the first letter in lowercase:

Code:
world.createBody(bodyDef);
Hey guys,

Wanted to apologize for my extended absence, and thank shaktool for taking care of 2.0.1 for me.
I'm still completely overwhelmed with work, but I'll try to find some time to take a look at shaktool's work soon and make an official release.

Cheers,
I'm just finishing a project with 1.4 and wanted to ask if 2.0.1 in its current state is suitable to use for production.
As far as I know, it has fewer bugs than 2.0.0. Collision listeners and Distance Joints are more reliable. But at least one person is reporting difficulties with compiling 2.0.1 in Flash CS3, and we've been unable to resolve that so far, as it doesn't give any error feedback.
Hello All!

I've recently started playing around with the Flash Port of Box2D 2.0.0 - what fun!

Anyhow, looking forward, I am a little confused as to which port to roll with. Which port is most likely to stay up-to-date with the official Box2D library? Shifting over to box2dflash Refactored is tempting, but with all the changes in naming, variable access etc I would then be glueing myself to that particular port and it's author's enthusiasm. At the same time, Skatehead seems to have disappeared, so I'm not sure what's happening on that front. Any advice would be greatly appreciated.

Many thanks,
//d
Well, "Refactored" has turned into a personal project between me and a few friends. It's not meant to lure people away from the official port, just provide a simpler alternative for myself and the community. Neither port really provides any guarantees, so I guess the choice is yours 😉


box2d_alias wrote:
Hello All!

I've recently started playing around with the Flash Port of Box2D 2.0.0 - what fun!

Anyhow, looking forward, I am a little confused as to which port to roll with. Which port is most likely to stay up-to-date with the official Box2D library? Shifting over to box2dflash Refactored is tempting, but with all the changes in naming, variable access etc I would then be glueing myself to that particular port and it's author's enthusiasm. At the same time, Skatehead seems to have disappeared, so I'm not sure what's happening on that front. Any advice would be greatly appreciated.

Many thanks,
//d
There is already a bug (this one) that is fixed in 2.0.1 but is not fixed in refactored. (see?)
Sorry for the delays, here's the official Box2DFlash AS3 2.0.1 release!
Exactly the same as shaktool's release but with one additional bug fix. (DestroyShape in b2Body.as was causing big problems (since 2.0.0))

Get it here:
http://box2dflash.sourceforge.net/

Thanks again shaktool!
Awesome! Thanks for the update. ^_^
pv3d wrote:
@Boris- I have no intentions for this branch to be considered the authority (unless that's what skatehead wants) and I'll gladly tack on some adjective to distinguish the two versions. I'll probably just call it "Box2dFlash Refactored" as that's really all I've done. Erin, skatehead, and shaktool have done all the hard work.

As for keeping up with Box2D, my hope is that "Refactored" will draw more developers in with the friendlier syntax. It may or may not happen, but it's a risk I'd rather take.

It's very good idea to modify names according to AS3 coding conventions. Strange to see classes like "b2Bound", packages like "Dynamics", class fields like "m_mass" and methods like "SetMassFromShapes" - it is very confusing for AS3 programmer which never used C++.

The tutorial is also very useful, so keep going.

The only thing I worry about is how do you plan to keep "Refactored" branch up-to-date?

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