/// <summary> /// Initializes a new instance of the <see cref="OctreeCuller"/> class. /// </summary> /// <param name="worldSize">Size of the world.</param> /// <param name="loose">The loose.</param> /// <param name="maxDepth">The max depth.</param> /// <param name="center">The center.</param> /// <param name="DebugDrawer">The debug drawer. We strong recomend you to DONT JUST this DebugDrawer for nothing anymore, if you need, create another</param> public OctreeCuller(float worldSize, float loose, int maxDepth, Vector3 center, DebugShapesDrawer DebugDrawer = null) { oct = new Octree <IObject>(worldSize, loose, maxDepth, center); if (DebugDrawer != null) { DebugDrawer.DrawAllShapesEachFrame = false; oct.DebugDraw = DebugDrawer; } }