simple gravity control + collision detection