make 3d, actually do intersection tests etc