Prepare collision detection