Thanks for the pointers! I think I have a working system now. BTW, here is the page that was my inspiration (although it lacks collision handling): http://www.aquinhasa.com/?p=56