Enhanced setCollision() routine.