Example #1
0
        public void Apply()
        {
            celestialBody            = Tools.GetCelestialBody(body);
            scaledCelestialTransform = Tools.GetScaledTransform(body);

            GameObject go = new GameObject();

            cloudsPQS = go.AddComponent <CloudsPQS>();
            go.name   = "EVE Clouds: " + this.name;
            Matrix4x4 rotationAxis = new Matrix4x4();

            rotationAxis.SetRow(0, rotationAxis0);
            rotationAxis.SetRow(1, rotationAxis1);
            rotationAxis.SetRow(2, rotationAxis2);
            cloudsPQS.Apply(body, settings, layer2D, layerVolume, altitude, arc, speed, detailSpeed, offset, rotationAxis, killBodyRotation);
        }
 public void Apply()
 {
     celestialBody = Tools.GetCelestialBody(body);
     scaledCelestialTransform = Tools.GetScaledTransform(body);
     
     GameObject go = new GameObject();
     cloudsPQS = go.AddComponent<CloudsPQS>();
     go.name = this.name;
     Matrix4x4 rotationAxis = new Matrix4x4();
     rotationAxis.SetRow(0, rotationAxis0);
     rotationAxis.SetRow(1, rotationAxis1);
     rotationAxis.SetRow(2, rotationAxis2);
     cloudsPQS.Apply(body, settings, layer2D, layerVolume, altitude, speed, detailSpeed, offset, rotationAxis, killBodyRotation);
 }