update gravity force