AS3 2.1 Port (Alchemy), WCK Update and Kinematic Demos

Thanks again, you are right for some reason export SWC must be checked in Publish Settings or things will not compile.

I think I have everything set up correctly, but I am getting a warning:
Warning: 3553: Function value used where type Boolean was expected. Possibly the parentheses () are missing after this function reference.

I'm going to assume I can ignore this, since it's a warning, rather than an error, and because my test movie seems to be working.
I'm tempted to move over to this from the normal as3 port, but the problem is we have no idea whats missing?

would be great if you could track exactly whats complete and whats missing.
PaulGene: Do a search across the whole Box2DAS folder for "NOT IMPLEMENTED". This will give you a good idea of what is missing (only a handful of functions in b2PolygonShape and b2Fixture) - if there's something you need, let me know. Most of the stuff is trivial to implement, I just haven't bothered because I don't ever use it myself. Other sections may be buggy for the same reason, but I would be very grateful to have others help test the more obscure parts of the API.

On the other hand, since this is a port of version 2.1, you actually get some added features, like Kinematic bodies and weld and friction joints.
I actually thought your project was an extension of the Box2DFlash port, mayobutter, and I wonder why you guys aren't pooling your efforts to make just one port; no confusion, well documented, thoroughly tested and best of all: with less over-all effort on your parts.

Seems a waste to me that y'all doing the same work. 😕
One thing I (and I'm sure, others) would be immensely grateful for would be convex decomposition. I think this is already available in the C++ version (under Contributions->Utilities->ConvexDecomposition), so hopefully it could be ported over using Alchemy without too much trouble. Not sure how you might want to integrate it on the AS3 side, but I'm thinking it would be best to make it somehow optional in case the inputted vertices are known to be convex and CCW.
It's a good thing that I stumbled upon this alchemy port, I'm developing a game that requires about 10 or more ragdolls on screen, which was not working out for me with the "normal" AS3 version.

I'm in the process of converting my project to the alchemy version but I'm unable to create a mouse joint because TestPoint is not implemented in b2fixture, I've looked into the WCK code to see how you make them but I'm unable to recreate that for my project. Could you help me out?
Also in terms of prioritizing what to implement, I'll put forward votes for TestPoint on b2Fixture and some way to call queryAABB. In my project I'm needing to instantaneously (without waiting for a step) determine the shapes that contain a given point, and using those two methods in conjunction seems like the most straightforward way.
shock-value wrote:
Also in terms of prioritizing what to implement, I'll put forward votes for TestPoint on b2Fixture and some way to call queryAABB. In my project I'm needing to instantaneously (without waiting for a step) determine the shapes that contain a given point, and using those two methods in conjunction seems like the most straightforward way.


I agree.

On another note, does the collision filtering work? I'm having problems with the category/masked bits that worked in the Box2DFlash version, everything is falling through eachother.
Update:

TestPoint is implemented.
QueryAABB is implemented.
RayCast is implemented.
DebugDraw (for shapes) is implemented.

Stryke: I played around with categoryBits, maskBits, and groupIndex in the HelloWorld project - they seem to be working just fine.

shock-value: There's already polygon decomposition for Flash in the "scripts" folder. This is for design-time though. I suppose it might be interesting to have the option at run-time.

Bingoboy: The native AS3 port and this one (Alchemy) are fundamentally different (AS3 vs C++). I started this project when I realized the type of game I wanted to make would not be possible with the native port, and got tired of waiting for new features to trickle down to the AS3 version. If anyone wants to take a stab at improving / contributing code to this port, please do!
mayobutter wrote:
Update:

TestPoint is implemented.
QueryAABB is implemented.
RayCast is implemented.
DebugDraw (for shapes) is implemented.

Stryke: I played around with categoryBits, maskBits, and groupIndex in the HelloWorld project - they seem to be working just fine.


Yep, they work fine, turns out I forgot to put the sensor on "off" after turning it "on" ^^.
and love you for implementing TestPoint 😀

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