Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Proper vision testing with raycasts

$
0
0
Hi all.

I'm currently working through one of the unity stealh tutorials where i'm coding enemy sight testing, and it detects the player just by doing a straight raycast towards them, to see if anything is blocking the path.

I see a problem with this, and i think i'll let this video demonstrate the issue:

I'd be willing to bet this problem has come up in a lot of games. If any object, no matter how tiny, blocks that raycast, the player is essentially...

Proper vision testing with raycasts

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>