A physics engine for studying and testing