I think change the name from gravity to something like checkGravity or doGravity. Normally methods are named as verbs. It also should probably be protected and called from onTick.