An attempt at encapsulating the methods described in this article for creating a physical simulation.
source