Hi all,
It took me a while, I'm close to finishing the Box2D flash port.
There are a few problems caused by incompatibilities between the EXE and the Flash library of the Box2D libraries and I can't really fix these unless I invest a *LOT* of time - and even then I might not be able to. I've also dropped a few things because they are rather complex but not used very often, it seems.
Changes from the latest beta:
- More expressions.
- Contact filtering
- More stable object/body linkage
- All "create" (joint etc.) actions are now implemented.
Here's a list of what might not work:
- Ray-casting can go through walls in really rare, odd cases. This seems like a library issue.
- Edge chains work differently: Each edge is a shape in Flash. This causes some actions that modify edge chains to be unsupported.
- It seems like Box2D Flash handles sleeping differently. Bodies might fall asleep even if they shouldn't. You can manually disable sleeping for them or uncheck "Allow sleeping" in the properties.
- Body definition strings are not supported.
- Working with custom mass might cause unwanted behaviour! From what I know it should work, but it works a lot different in Flash, so it's a source for problems...
- Some expressions may not work properly at all. *SOME* - Most of them should work perfectly! It's just that I didn't have the time to test them all properly! RevoluteJointAngle seems to behave weirdly sometimes. I really have no idea why.
The testbed seems to work fine - except for the issues that I mentioned which are partially present there (the raycasting issue and Sticky Bodies 2 jiggles weirdly sometimes). So yeah, it seems like your chances of being successful when opening an old Box2D project and porting it to Flash are pretty high. :)
This is a Release Candidate - There's still room for bug reports. I just think this version is good enough from what I know - feel free to prove me wrong. Just note that I can't really provide 100% compatibility - the library differences make this way too difficult, sorry.
Grab it here:
http://clickteam.info/looki/Extensions/Flash/B2D.zip
Testbed:
http://clickteam.info/looki/Stuff/Testbed.html

