Improvement to didBeginContact