Example #1
0
        public void SetupVegetationItemModels()
        {
            List <GameObject> windSamplerList = new List <GameObject>();

            for (int i = 0; i <= VegetationStudioCameraList.Count - 1; i++)
            {
                windSamplerList.Add(VegetationStudioCameraList[i].WindSampler);
            }

            ClearVegetationItemModels();
            for (int i = 0; i <= VegetationPackageProList.Count - 1; i++)
            {
                VegetationPackageProModelInfo vegetationPackageProModelInfo =
                    new VegetationPackageProModelInfo(VegetationPackageProList[i], EnvironmentSettings, windSamplerList, VegetationStudioCameraList.Count);
                VegetationPackageProModelsList.Add(vegetationPackageProModelInfo);
            }
        }
Example #2
0
        public void SetupVegetationItemModels()
        {
            List <GameObject> windSamplerList = new List <GameObject>();

            for (int i = 0; i <= VegetationStudioCameraList.Count - 1; i++)
            {
                windSamplerList.Add(VegetationStudioCameraList[i].WindSampler);
            }

            float additonalBoundingSphereRadius = 0;

            ClearVegetationItemModels();
            for (int i = 0; i <= VegetationPackageProList.Count - 1; i++)
            {
                VegetationPackageProModelInfo vegetationPackageProModelInfo =
                    new VegetationPackageProModelInfo(VegetationPackageProList[i], EnvironmentSettings, windSamplerList, VegetationStudioCameraList.Count);
                VegetationPackageProModelsList.Add(vegetationPackageProModelInfo);

                additonalBoundingSphereRadius = Mathf.Max(additonalBoundingSphereRadius,
                                                          vegetationPackageProModelInfo.GetAdditionalBoundingSphereRadius());
            }
            AdditionalBoundingSphereRadius = additonalBoundingSphereRadius;
        }