Slight simplification in collisionhandler.