Ejemplo n.º 1
0
            // find all neighbors within the given sphere (as center and radius)
            public override void findNeighbors(Vector3 center, float radius, ArrayList results)
            {
                //lqMapOverAllObjectsInLocality(lq,

                ArrayList tList = lq.getAllObjectsInLocality(center.x, center.y, center.z, radius);

                for (int i = 0; i < tList.Count; i++)
                {
                    lqClientProxy tProxy = (lqClientProxy)tList[i];
                    //tList.ForEach(delegate(lqClientProxy tProxy)
                    //{
                    results.Add((AbstractVehicle)tProxy.clientObject);
                    //});
                }
            }