Introduction

"And soon I will have understanding of videocassette recorders and car telephones. And when I have understanding of them, I shall have understanding of computers. And when I have understanding of computers, I shall be the Supreme Being!" (Time Bandits 1981)

Chris Ellis is a freelance Senior Flash Programmer, former Lingo Programmer and resident of London.

He has an MSc in Interactive Multimedia from Westminster University, graduating in 2000. He started programming at the age of 8 with a BBC Model B and a few books on BASIC.

What follows are some snippets from what he's currently up to.

Monday, 2 November 2009

Math and Physics Demos

I (fairly) recently went on a two day course with Keith Peters which was all about animating with code. This was rearly interesting. I have been meaning to do a maths refresher course for a while but never got round to it so thought this would be ideal, which it turns out it was!

We covered a lot of basic trig and physics (including velocity, kinematics, collision detection and resolution) over the two days which is always necessary for games programming. Once you understand how to perform roataions and understand velocity, there is so many things you can do with such little code.

I have included a few demos which look nice, but are infact really simple to make.

This is some basic kinematics of some running legs that you can interact with to make the affect more or less realistic.



This is a pseudo 3D demo, which uses rotation and scaling to create the affect.



Finally a nice little demo which uses easing on the ball. So simple, but looks pretty cool. Move the mouse around the window to throw the ball on the spring around.

0 comments: