421 {
422 array<int> distHelper = new array<int>();
423 foreach (RaycastRVResult res : results)
424 {
425 int distance = (
int)(vector.DistanceSq(res.pos,
m_RayStart) * 1000);
427 if (!arr)
428 arr = new array<RaycastRVResult>();
429
430 arr.Insert(res);
432
433 if (distHelper.Find(distance) == -1)
434 distHelper.Insert(distance);
435 }
436
437 distHelper.Sort();
438 return distHelper;
439 }
ref map< int, ref array< RaycastRVResult > > m_SortedResults
vector m_RayStart
objects in vicinity