Perliminary collision detection.