/// <summary>
        /// Add a pack of dogs
        /// </summary>
        private void CreatePackOfDogs()
        {
            Random random = new Random();
            dogs = new Pack(this, "dog", "dogV3", player.AgentObject);
            Components.Add(dogs);
            int count = 0;
            for (int x = -9; x < 10; x += 6) {
                for (int z = -3; z < 4; z += 6) {
                    float scale = (float)(0.5 + random.NextDouble());
                    float xPos = (384 + x) * SPACING;
                    float zPos = (384 + z) * SPACING;
                    dogs.AddObject(
                        new Vector3(xPos, terrain.SurfaceHeight((int)xPos / SPACING, (int)zPos / SPACING), zPos),
                        new Vector3(0, 1, 0), 0.0f,
                        new Vector3(scale, scale, scale));
                    count++;
                }
            }

            dogs.FlockSize = count;
            dogs.InitializeFlocing();
        }
 /// <summary>
 /// Add a pack of spongbot 
 /// </summary>
 private void CreatePackOfSponge()
 {
     Random random = new Random();
     Pack pack = new Pack(this, "Sponge Bot", "SpongeBot", player.AgentObject);
     Components.Add(pack);
     for (int x = -9; x < 10; x += 6) {
         for (int z = -3; z < 4; z += 6) {
             float scale = (float)(0.5 + random.NextDouble());
             float xPos = (284 + x) * SPACING;
             float zPos = (284 + z) * SPACING;
             pack.AddObject(
                 new Vector3(xPos, terrain.SurfaceHeight((int)xPos / SPACING, (int)zPos / SPACING), zPos),
                 new Vector3(0, 1, 0), 0.0f,
                 new Vector3(scale, scale, scale));
         }
     }
 }