November 18, 2006 on 12:18 pm | In Actionscript, Physics | 5 Comments
To keep you posted about the motor development, here are some more (fairly simple) demo scenes. I am still unhappy with the overall performance, because there is neither a quick boundary check nor some kind of space partitioning here. But that’s exactly what I am working on right now. My favorite is the buoyancy demo, and there will be a much more realistic version with wave propagation soon.
Flabby bridge
Attracted spheres
Stay upright constraint
Simple Buoyancy
(All demos open in a popup window and require the newest Flash Player)
November 13, 2006 on 4:48 pm | In Actionscript, Games, data structures | No Comments
I have written a tutorial about speeding up collision detection using a space partitioning algorithm called Recursive Dimensional Clustering. Watch a demo. You can find the full article and source code here.
November 13, 2006 on 4:42 pm | In Actionscript | 2 Comments
I have just noticed that besides the for..in syntax there is a new syntax in AS3:
for each (i in object)
{
val = i;
}
For some reason this is a lot faster than the old syntax - it is still slower than the fastest integer loop, but this shouldn’t affect the performance very much. Better read the manual next time ;-)
I also have updated the performance table in the previous post.