Broadphase now added...

Wednesday, 23 January 2008 | Labels: , | |

I was a little skeptical about broadphase with tightly packed bodies. After some playing around with Sweep&Sort I came up with a very efficient version that Actionscript likes. I also implemented my own inline Insertion Sort on the shape list to take advantage of spacial coherence (anybody know that the built in AS3 Array sort algorithm is?).

Result? A bump to 425 bodies - not all that stable sometimes. The stack just disintegrates at various points sometimes - I'll have to take a look, maybe bump up the iterations of the solver...

Find it here: http://home.planet.nl/~borst595/pEngineStressDemo.swf

or through the link at the bottom of the main page:

http://home.planet.nl/~borst595/pEngine.html

Now I really need to start fixing stuff for a release rather than seeing how fast I can make it....

0 comments: