Ejemplo n.º 1
0
 public void AddToScene()
 {
     if (!inScene)
     {
         inScene        = true;
         forestSemantic = new Axiom.SceneManagers.Multiverse.Forest(this.seed, WorldEditor.GetUniqueName("ForestBoundarySemantic", parent.Name), app.Scene.RootSceneNode);
         parent.SceneBoundary.AddSemantic(this.forestSemantic);
         forestSemantic.WindFilename  = filename;
         forestSemantic.WindDirection = windDirection;
         forestSemantic.WindStrength  = windSpeed;
     }
     foreach (IWorldObject tree in treeTypes)
     {
         tree.AddToScene();
     }
 }
Ejemplo n.º 2
0
 public void AddToScene()
 {
     if (!inScene)
     {
         inScene = true;
         forestSemantic = new Axiom.SceneManagers.Multiverse.Forest(this.seed, WorldEditor.GetUniqueName("ForestBoundarySemantic", parent.Name), app.Scene.RootSceneNode);
         parent.SceneBoundary.AddSemantic(this.forestSemantic);
         forestSemantic.WindFilename = filename;
         forestSemantic.WindDirection = windDirection;
         forestSemantic.WindStrength = windSpeed;
     }
     foreach (IWorldObject tree in treeTypes)
     {
         tree.AddToScene();
     }
 }