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?
↧