コード例 #1
0
ファイル: Area.cs プロジェクト: mengtest/RewriteFrame
 public void DoDrawGizmos(Area owner)
 {
     if (DisplayGizmos)
     {
         GizmosUtility.DrawBounds(owner.GetAABB(), AABBGizmosColor);
     }
     VoxelDebug.DoDrawGizmos(owner.VoxelGrid, owner.GetAABB());
 }
コード例 #2
0
 private void OnDrawGizmosSelected()
 {
     if (Bounds != null)
     {
         GizmosUtility.StoreColor(Color.green);
         GizmosUtility.DrawBounds(Bounds.bounds);
         GizmosUtility.RestoreColor();
     }
 }
コード例 #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);
     }
 }