More Physics Experiments
Elastic Collisions! Today I made a simple ball vs. ball elastic collision demo in AS3. It’s basically a simulation where there is no loss of kinetic energy. You can see it here.
Elastic Collisions! Today I made a simple ball vs. ball elastic collision demo in AS3. It’s basically a simulation where there is no loss of kinetic energy. You can see it here.
I have changed the collision response code in my Verlet physics engine so that it is now more stable (No more exploding objects). The updated demo is here.
EDIT:2/9/09 The engine has been updated again with increased stability and textured objects.
This past week I’ve been trying to create a simple physics engine that I can use for my games. So far I’ve made it so that you can add polygonal bodies with simple constraints (no circles yet). It works fine most of the time, but the collision response is a bit unstable. I made a small sandbox app that you can see here.
Lately I’ve been procrastinating on Jellyman, and working on creating an AS3 Bitmap blitting engine for my future games. So far it works pretty well, it can sustain 50 fps with a 600+ sprites on screen, with a relatively slow (by today’s standards) G5 processor. In the engine I’ve also implemented a camera system, which will allow me to scroll the screen simply by saying screen.camera.x++
.
The engine works by using copyPixels
to blit sprites onto layers, which are then blitted (is that a word?) onto the main canvas, which is a Bitmap instantiated on the Stage.
Soon I will add in support for using flash filters on specific layers. I will also put in functions for special effects such as screen shaking :D.
Happy New Year! Horray. Now what?
Jellyman still isn’t complete, even though I set the target release date to be somewhere in August. This is due to my bad procrastination habits and excessive schoolwork. If I’m lucky I should be able to get it out by Christmas.
I have finally updated this site after 3 months. I now have a top-level domain (marmphco.com). The experiments and stuff sections have been consolidated into one section and the blog section has been added.
I’ve been ignoring the fact that I haven’t put a doctype tag on any of my webpages. Today I finally did that. Yeah… that’s it.
The navigation bar got changed. I also added a “Get Firefox” button.
##EDITED 8/13/08
Why Firefox? Firefox adheres to web standards much better than Internet Explorer, which forces developers to resort all sorts of weird loopholes in order to make their sites look right. This site is a good example of that. It does not render correctly on Internet Explorer.
All of the HTML pages have now been switched to PHP. This allows me to use PHP includes to lower the amount of time it takes me to make sitewide changes (like the Navigation and stuff). On another note, the PC with all of my AS3 projects stopped working because the hard drive died…