Handle custom gravity