Question by
erdostamasa · Jun 04, 2020 at 03:35 PM ·
2daidetectionsimulationartificial intelligence
How to keep an array of targets in detection radius?
I'm trying to create a 2D simulation where an unit has a view range. I'd like to keep track of every other object that's inside this range and based on their type, interact with them(go towards, run from it, etc.) What is the best (and most efficient) way to implement a target-finder system like this? Could you recommend any tutorials if they exist?
Comment
Your answer
Follow this Question
Related Questions
How to fix the rotation bug? 1 Answer
How do you determine the x,y co-ordinates of a sprite's boundaries? 1 Answer
OnTriggerEnter2D Not Detecting BoxCollider2D - Childed Object 2 Answers
Destroy object with trigger and add value to variable 1 Answer
Enemy raycast detects player only at constant distance 0 Answers