In the real world, balls bounce and water splashes because of the laws of physics. In computer games, a physics engine ensures the virtual world behaves realistically. Mathematician and computer programmer Nick Gray tells us about playing God in a virtual world.