- Home /
Question by
0867532 · Jul 29, 2013 at 09:09 PM ·
gameobjectremove
How to remove closest game object?
i have 3 game objects with tag "Obj" how to remove closest of them from else game Object?
Comment
Answer by gardian06 · Jul 29, 2013 at 09:39 PM
get a hold of all the objects you are interested in. you can do this either by finding them all, or by a sphereCast
then taking the distance of each 1 to determine which one is closest
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
How to remove objects from a list ? 3 Answers
Moving Platform 5 Answers
Message sender...how to know who send the message 1 Answer
Removing objects from an array 2 Answers