Implements basic gravity.