work done on 3d collision detection