Smoothed out collision detection