Beispiel #1
0
 public void DoDrawGizmos(Area owner)
 {
     if (DisplayGizmos)
     {
         GizmosUtility.DrawBounds(owner.GetAABB(), AABBGizmosColor);
     }
     VoxelDebug.DoDrawGizmos(owner.VoxelGrid, owner.GetAABB());
 }
 private void OnDrawGizmosSelected()
 {
     if (Bounds != null)
     {
         GizmosUtility.StoreColor(Color.green);
         GizmosUtility.DrawBounds(Bounds.bounds);
         GizmosUtility.RestoreColor();
     }
 }
Beispiel #3
0
 public void DoDrawGizmos(VoxelGrid owner, Bounds aabb)
 {
     if (DisplayGizmos)
     {
         Vector3 voxelSize = owner.VoxelSize * Vector3.one;
         Bounds  voxel     = new Bounds(aabb.center, voxelSize);
         GizmosUtility.DrawBounds(voxel, VoxelGizmosColor);
         voxel.center = owner.GetLDBVoxelPosition();
         GizmosUtility.DrawBounds(voxel, VoxelGizmosColor);
         voxel.center = owner.GetRUFVoxelPosition();
         GizmosUtility.DrawBounds(voxel, VoxelGizmosColor);
     }
 }