Example #1
0
 public void DrawParticlesDebug()
 {
     foreach (GameObject particleObj in _Particles)
     {
         _GridOverlay.DrawCube(particleObj.transform.position, _VParticleRadius);
         _GridOverlay.DrawPartitioners(particleObj.transform.position, _VParticleRadius);
     }
 }
Example #2
0
 public void DrawPartitions(GridOverlay gridOverlay)
 {
     if (TotalChildren >= SMaxChildren)
     {
         //Debug.Log(" Center : " + Center + " HalfWidth :" + HalfWidth);
         ///Debug.Log(" _CurrentDepth : " + _CurrentDepth + " HalfWidth :" + HalfWidth);
         //Debug.Log(" _TotalChildren : " + _TotalChildren + "_CurrentDepth" + _CurrentDepth);
         //Debug.Log(" sQuarterDiagonal : " + sQuarterDiagonal);
         gridOverlay.DrawPartitioners(Center, HalfWidth);
         for (int i = 0; i < 8; ++i)
         {
             if (_Nodes.ContainsKey(i))
             {
                 _Nodes[i].DrawPartitions(gridOverlay);
             }
         }
     }
 }