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

        pointOctree.DrawAllBounds();
        pointOctree.DrawAllObjects();
    }
Пример #4
0
 void OnDrawGizmos()
 {
     if (debugPoints)
     {
         po.DrawAllObjects();
     }
     if (debugBounds)
     {
         po.DrawAllBounds();
     }
 }
Пример #5
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
        }
    }
Пример #6
0
 void OnDrawGizmos()
 {
     if (po == null)
     {
         return;
     }
     if (debugBounds)
     {
         po.DrawAllBounds();
     }
     if (debugObjects)
     {
         po.DrawAllObjects();
     }
 }
Пример #7
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();
        }
    }
Пример #8
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;
            }
        }
    }
Пример #9
0
 // temp
 void OnDrawGizmos()
 {
     tree.DrawAllBounds();  // Draw node boundaries
     tree.DrawAllObjects(); // Mark object positions
 }