by the way ,you are also multiplying by time_step twice there in your gravity code and movement code


Compulsive compiler