Find if object is at a point?
Hello,
I have a set of coordinates.
There is an object at this point.
I want to destroy this object.
How do I do this?
I can't use Find, because it's a clone.
Answer by Jessespike · Nov 27, 2015 at 04:57 PM
You can find if an object is close to a position with Vector3.Distance, another solution would be to use Colliders to detect when object is close
That could work, except I only want to destroy it if the object is at the coordinates exactly. As well, the game pieces are stationary.
Is there a way to access the object that has been hit by a RaycastHit?
Your answer
Follow this Question
Related Questions
[SOLVED]Deletion of instantiated clones not in order 1 Answer
Instantiate changes position 1 Answer
How can you load next the level after you destroy the last clone c# 1 Answer
Destroy specific clone 3 Answers
[SOLVED] How to destroy a cloned object if it object colliding with another cloned object ? 1 Answer