Nadav-01 / Physics_Game

School project based on 2d physics. Written in Java. Pretty crappy, nothing to see here.
0 stars 0 forks source link

Changed to delta time implementation. #11

Closed Nadav-01 closed 5 years ago

Nadav-01 commented 5 years ago

Instead of assuming frames come at constant intervals, i used the System.currentTimeMillis() function to check how many milliseconds have passed since last frame and update the forces and velocities acordingly.