Quantcast
Channel: Latest Questions by nuhash
Viewing all articles
Browse latest Browse all 14

Want to find closest NPC to the player character. How?

$
0
0
I want to find the closest NPC to the player character. What is the best to do this? Some ideas I have had: Every NPC has an extra collider and then calculate closest NPC using collider data (although not sure how i would actually go about this) Raycasting?

Viewing all articles
Browse latest Browse all 14

Trending Articles



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