implementing delta time to fix physics simulation.