Improving collision detection for fallen shapes