first working 3d-collisions