Working gravity, collision detection