just like the tittle says, how do i do 3d raycasting so that the player can interact with objects

I think you can just refer the template for 3d fps first shooting.
yeah but it costs money and i dont have that kind of money
How would I raycast in an angle from the center of an object in 3D?
Do it the way OP did it, as shown in the image of the first post.
