Modify the function of gravity to scale from 1 to 0