Esempio n. 1
0
 public OCTree(int maxObjectPerNode, Vector3 center, Vector3 extents)
 {
     Root = new Node(this, null, center, extents, 0);
     Root.Divide();
     
     MaxObjectsPerNode = maxObjectPerNode;
 }
Esempio n. 2
0
        public OCTree(int maxObjectPerNode, Vector3 center, Vector3 extents)
        {
            Root = new Node(this, null, center, extents, 0);
            Root.Divide();

            MaxObjectsPerNode = maxObjectPerNode;
        }
Esempio n. 3
0
 public void Clear()
 {
     Root = new Node(this, null, Root.Center, Root.Extents, 0);
     Root.Divide();
 }
Esempio n. 4
0
 public void Clear()
 {
     Root = new Node(this, null, Root.Center, Root.Extents, 0);
     Root.Divide();
 }