How Do I Make 3D Raycasting Floors

it has already been done before and you can edit it how you want