コード例 #1
0
ファイル: OctTreeModule.cs プロジェクト: hvp/Gemgine
 private void queryAction(List<ModelComponent> r, OctCell cell)
 {
     if (cell.contents != null) r.AddRange(cell.contents.Select((n) => { return n.spacial; }));
 }
コード例 #2
0
ファイル: OctTreeModule.cs プロジェクト: hvp/Gemgine
 public Scene(BoundingBox worldBounds, float leafSize)
 {
     octTreeRoot = new OctCell(worldBounds);
     this.minimumLeafSize = leafSize;
 }