update the path in gravity loop. (will make path more accurate with low framerates & when taking screenshots)