Fixed gravity issue at different framerates