#Thanks for the input Silver! Would it
1 messages · Page 1 of 1 (latest)
This depends on the number of objects you're testing and the camera you have.
If you have 100+ objects to test if they are in front of you before you do the raycast, you can check if it's even on screen. Alternatively you can also use a dot product between camera forward direction and the vector from your camera to that object, if it is a first person camera)
This depends on if you want it on screen, a distance away from the cross hair, if any, etc.
I would even do a distance check with a max distance before doing a raycast towards that object.