private RegionWall getRegionWall(PlaneDirection dir, bool flag) { RegionWall wall = new RegionWall((flag ? dir.positive : dir.negative) * ((Region.SIZE / 2) * 16), dir, !flag); wall.generateCavePoints(); return(wall); }
public RegionWall(Vector3 pos, PlaneDirection dir, bool switchNormal) { this.planeOrgin = pos; this.planeDirection = dir; this.outside = switchNormal ? this.planeDirection.negative : this.planeDirection.positive; this.inside = switchNormal ? this.planeDirection.positive : this.planeDirection.negative; this.caveOrgins = new List <Vector3>(); }