/// <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;                
     }            
 }        
 public RegisterDebugDrawCommand(DebugShapesDrawer DebugDrawer)
 {
     this.shape = DebugDrawer;
 }
Exemplo n.º 3
0
 public RegisterDebugDrawCommand(DebugShapesDrawer DebugDrawer)
 {
     this.shape = DebugDrawer;
 }
Exemplo n.º 4
0
 internal void RegisterDebugDrawer(DebugShapesDrawer debugDrawer)
 {
     debugDrawer.Initialize(factory, GraphicInfo);
     debugDrawers.Add(debugDrawer);
 }
Exemplo n.º 5
0
 internal void RegisterDebugDrawer(DebugShapesDrawer debugDrawer)
 {
     debugDrawer.Initialize(factory, GraphicInfo);
     debugDrawers.Add(debugDrawer);
 }