Simulator for physics