void OnDrawGizmos()
 {
     if (pointTree != null)
     {
         pointTree.DrawAllBounds();  // Draw node boundaries
         pointTree.DrawAllObjects(); // Mark object positions
     }
 }
Exemplo n.º 2
0
 public static void DrawOctree()
 {
     lock (octree)
     {
         octree.DrawAllBounds();
         octree.DrawAllObjects();
     }
 }
Exemplo n.º 3
0
    void OnDrawGizmos()
    {
        if (!Application.isPlaying && pointOctree is null)
        {
            return;
        }

        pointOctree.DrawAllBounds();
        pointOctree.DrawAllObjects();
    }
Exemplo n.º 4
0
 private void OnDrawGizmos()
 {
     if (tree != null)
     {
         tree.DrawAll(drawNodes, drawObjects, drawConnections, drawLabels);
     }
     if (pointTree != null)
     {
         pointTree.DrawAllBounds();
     }
 }
Exemplo n.º 5
0
 void OnDrawGizmos()
 {
     if (debugPoints)
     {
         po.DrawAllObjects();
     }
     if (debugBounds)
     {
         po.DrawAllBounds();
     }
 }
Exemplo n.º 6
0
    void OnDrawGizmos()
    {
        if (boundsTree != null)
        {
            boundsTree.DrawAllBounds();       // Draw node boundaries
            boundsTree.DrawAllObjects();      // Draw object boundaries
            boundsTree.DrawCollisionChecks(); // Draw the last *numCollisionsToSave* collision check boundaries
        }

        if (pointTree != null)
        {
            pointTree.DrawAllBounds();  // Draw node boundaries
            pointTree.DrawAllObjects(); // Mark object positions
        }
    }
Exemplo n.º 7
0
 void OnDrawGizmos()
 {
     if (po == null)
     {
         return;
     }
     if (debugBounds)
     {
         po.DrawAllBounds();
     }
     if (debugObjects)
     {
         po.DrawAllObjects();
     }
 }
Exemplo n.º 8
0
    void OnDrawGizmos()
    {
        if (KinectPCL.instance == null)
        {
            return;
        }

        PointOctree <PCLPoint> po = KinectPCL.instance.bodyTree;

        if (po == null)
        {
            return;
        }

        if (debugPoints)
        {
            po.DrawAllObjects();
        }
        if (debugBounds)
        {
            po.DrawAllBounds();
        }
    }
Exemplo n.º 9
0
    void OnDrawGizmos()
    {
        BoundsOctree <GameObject> boundsTree = new BoundsOctree <GameObject>(15, MyContainer.position, 1, 1.5f);
        PointOctree <GameObject>  pointTree  = new PointOctree <GameObject>(15, MyContainer.position, 1.0f);

        for (int i = 0; i < myObject.Count; i++)
        {
            boundsTree.Add(myObject[i], myBounds);
            boundsTree.DrawAllBounds(); // Draw node boundaries

            Gizmos.color = Color.yellow;
            Gizmos.DrawSphere(transform.position, radius);
            boundsTree.DrawAllObjects(); // Draw object boundaries
                                         //.DrawCollisionChecks(); // Draw the last *numCollisionsToSave* collision check boundaries

            pointTree.DrawAllBounds();   // Draw node boundaries
            pointTree.DrawAllObjects();  // Mark object positions

            if (track[i])
            {
                myBounds.center = track[i].position;
            }
        }
    }
Exemplo n.º 10
0
 // temp
 void OnDrawGizmos()
 {
     tree.DrawAllBounds();  // Draw node boundaries
     tree.DrawAllObjects(); // Mark object positions
 }