I needed a little bit idea about this because I could not able to find a good answer. I want to know what does the 0 in the List of hits mean, like if it is the first hit point or something else and what happens if I wrote different number instead of 0.
public GameObject Radicle;
ARRaycastManager aRRaycastManager;
void Start()
{
aRRaycastManager = GetComponent<ARRaycastManager>();
}
void Update()
{
List<ARRaycastHit> hits = new List<ARRaycastHit>();
if(hits. Count > 0 )
{
Radical.transform.position = hits[0].pose.position;
Radical.transform.rotation = hits[0].pose.rotation;
}
}
Well, the code consist more details but I think this will be enough to get my question, but if required I can provide more.