How do i do fps 3d raycasting?

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

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

1 Like

It depends on how you want to raycast. There are a few options available:

If the game is 1st person and you want to raycast straight where the player is facing, then use the “RayCast from Camera Center” condition.

1 Like

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.