public void OutsideBounds(BoidsBoundary boundary) { this.BoundaryVolumes.Remove(boundary); if (this.BoundaryVolumes.Count <= 0) { this.IsOutOfBounds = true; } }
public void InsideBounds(BoidsBoundary boundary) { this.BoundaryVolumes.Add(boundary); this.LastBoundary = boundary; // If this fish just returned from being out of bounds if (this.IsOutOfBounds) { // TODO : Direct fishies more inward, otherwise they stay along the boundary edge this.IsOutOfBounds = false; } }