per-frame physics simulation