Velocity for one.
Gravity may pull things towards each other, but the result of this pull depends on the initial positions and velocities of those objects. If velocity of an object is high enough, it may escape the gravitational pull of another body and escape. Even if two objects collide, it...