Hi there,
perhaps I posted in the wrong section.
I have some questions of arrays and this is my original link. Please check it out if you have the time to help me in better understanding what I am doing wrong in terms of ray casting for input use in the iOS.
Thanks.
http://forum.unity3d.com/threads/116367-learning-rays-for-the-iOS
working to my needs.
thanks.
function Update ()
{
if (Input.touchCount == 1)
{
var theTouch : Touch = Input.GetTouch(0);
var ray = Camera.main.ScreenPointToRay(theTouch.position);
var hit : RaycastHit;
if (Physics.Raycast(ray, hit))
{
print("oh yah");
print("ray" + ray);
print("hit.collider.gameObject.name" + hit.collider.gameObject.name);
}
}
}