Example #1
0
        private static void DrawDBVH(ObiWorld world, DBVH.DBVHNode node)
        {
            if (node == null) return;

            if (node.content == null){
                DrawDBVH(world,world.dynamicBVH.GetLeftChild(node));
                DrawDBVH(world,world.dynamicBVH.GetRightChild(node));
            }

            Gizmos.DrawCube(node.bounds.center,node.bounds.size);
        }
Example #2
0
 public void OnEnable()
 {
     if (dynamicBVH == null)
     dynamicBVH = new DBVH();
 }