A graphics engine with basic physics