Beispiel #1
0
        public Outdoor Fractured()
        {
            var fractured    = new Outdoor(this);
            var boundary     = new Environment("Boundary", Center, Size * 2.0f, BaselineEnvironment);
            var environments = new List <Environment>(fractured.Environments);

            foreach (var environment in fractured.Environments)
            {
                environments.Remove(environment);
                environment.Fracture(boundary, environments);
                environments.Add(environment);
            }
            return(fractured);
        }
Beispiel #2
0
 private Outdoor(Outdoor other_)
 {
     Name = other_.Name;
     BaselineEnvironment = other_.BaselineEnvironment;
     foreach (var environment in other_.Environments)
     {
         Environments.Add(new Environment(environment));
     }
     foreach (var linearObstacle in other_.LinearObstacles)
     {
         LinearObstacles.Add(new LinearObstacle(linearObstacle));
     }
     Center = other_.Center;
     Size   = other_.Size;
 }