I have an idea how the code should look, but I'm just struggling to figure out how you'd write it in Unity. Heres a rough example of what I want it to do (obviously not in code yet).
Find the Xposition and Yposition of this gameObject (the one controlled by the fiducial, which I hope to apply this script to) For Zpos = 0 to 150, (this allows for depth) If a gameObject exists at (Xpos, Ypos, Zpos) Then that gameobject should gain an effect to show it has been found (glowing perhaps) If object is found, stop loop.
Sorry for being a completely beginner, I understand people normally come for help with a bit more than this.
asked Feb 20, 2011 at 06:56 PM
This will print the GameObject that it is attached to position in the Console. You could use that information for any other purpose
To get started:
answered Feb 20, 2011 at 06:59 PM