multisample collision detection