Hi, I have a sphere with a cursor on it, I basically want text to be printed when the position of the cursor is around... say the value of 1 on x AND y (so could be either side by 1 or 2 more) thus giving a kind of "radius" for the cursor to be within.
EDIT: Okay I'll explain better: I have a "globe" object with camera "orbiting" around it, I want a label to appear when the camera is at a certain position, imagine that it was facing America at 1.5,1.5 but America is more than just a single co-ord, its around 1-1.8,1.2-1.7 of the cameras transform position. as far as a "cursor" i've made an alpha sphere over the globe and make a dot texture to always face camera, SO its always centre of the camera position.
EXAMPLE: http://vimeo.com/16670934
- The main issue is to get a radius of transform.position - X=1 up to X=1.5 and Y=1 up to Y=1.5
function Update ()
{
if (transform.position.x == 1)
{ print("Bingo") }
}
is my basic attempt - Caius