update physics simulation