Update: Box2DFlashAS3 1.4.3 released.
Example and download link can be found here:
http://box2dflash.sourceforge.net/
////////////////////////////////////////////////////////
Been working on this for a few days now,
I've managed to get it to compile and not crash, so I figured I'd make a thread for anyone interested (or able to help me make it run a bit better?).
Anyway, have a look:
http://skatehed.ho8.com/flash9/PhysTest.html
(5 iterations, 30 hertz)
Is it normal behavior for boxes that spawn near (inside aabb maybe?), or inside each other to not collide until they move apart?
Also, I copied the pair rendering code from the samples, and the lines are 'snapping' to every 0.5 units or something, any ideas what might be causing this, and if it might stem from a bug I've created somewhere?
edit: Indeed it was a bug I had created, fixed now though (but not re-uploaded).
http://skatehed.ho8.com/flash9/debug/PhysTest.html
There are a few areas that I can think of that could probably be optimized, but I hadn't used box2D before I started this port so any tips on areas to optimize would be appreciated.
I'm hoping I'll be able to get it to run better, so I can actually use it in a project. (:
Either way, it was heaps of fun working on (except the vector math without operator overloading :S ), and I learned heaps about Actionscript and c++ (Like how to emulate a c++ union with AS3 :P )
Cheers, let my know what you think.
-Matt
Example and download link can be found here:
http://box2dflash.sourceforge.net/
////////////////////////////////////////////////////////
Been working on this for a few days now,
I've managed to get it to compile and not crash, so I figured I'd make a thread for anyone interested (or able to help me make it run a bit better?).
Anyway, have a look:
http://skatehed.ho8.com/flash9/PhysTest.html
(5 iterations, 30 hertz)
Is it normal behavior for boxes that spawn near (inside aabb maybe?), or inside each other to not collide until they move apart?
Also, I copied the pair rendering code from the samples, and the lines are 'snapping' to every 0.5 units or something, any ideas what might be causing this, and if it might stem from a bug I've created somewhere?
edit: Indeed it was a bug I had created, fixed now though (but not re-uploaded).
http://skatehed.ho8.com/flash9/debug/PhysTest.html
There are a few areas that I can think of that could probably be optimized, but I hadn't used box2D before I started this port so any tips on areas to optimize would be appreciated.
I'm hoping I'll be able to get it to run better, so I can actually use it in a project. (:
Either way, it was heaps of fun working on (except the vector math without operator overloading :S ), and I learned heaps about Actionscript and c++ (Like how to emulate a c++ union with AS3 :P )
Cheers, let my know what you think.
-Matt

