base collision detection