Added gravity calculation/position update.