Example #1
0
        public Cloud() : base(Vector3.Zero)
        {
            Name = "cloud" + Clouds.Count;

            Mesh = new MeshIcosphere(Vector3.Zero, Vector3.One, true);
            Mesh.Material.Translucent = true;

            Radius     = lastRadius;
            Mesh.Scale = new Vector3(Radius);

            if (lastType != null)
            {
                type = lastType;
            }
            else
            {
                type = CloudType.CloudTypes[0];
            }

            Spin  = lastSpin;
            Color = lastColor;

            Clouds.Add(this);
            AllowRotation = false;
        }
Example #2
0
        public Nebula() : base(Vector3.Zero)
        {
            Name = "nebula" + Nebulas.Count;

            Mesh = new MeshIcosphere(Vector3.Zero, Vector3.One);
            Mesh.Material.Translucent = true;

            Radius     = lastRadius;
            Mesh.Scale = new Vector3(Radius);
            Nebulas.Add(this);

            if (lastType != null)
            {
                Type = lastType;
            }
            else
            {
                Type = NebulaType.NebulaTypes[0];
            }

            Resources = lastResources;

            Color  = lastColor;
            Spin   = lastSpin;
            Refill = lastRefill;

            AllowRotation = false;
        }
Example #3
0
        public DustCloud() : base(Vector3.Zero)
        {
            Name = "dustCloud" + DustClouds.Count;

            Mesh = new MeshIcosphere(Vector3.Zero, Vector3.One, true);
            Mesh.Material.Translucent = true;

            Radius     = lastRadius;
            Mesh.Scale = new Vector3(Radius);

            if (lastType != null)
            {
                type = lastType;
            }
            else
            {
                type = DustCloudType.DustCloudTypes[0];
            }

            Resources = lastResources;
            Spin      = lastSpin;
            Refill    = lastRefill;
            Color     = lastColor;

            DustClouds.Add(this);
            AllowRotation = false;
        }
Example #4
0
        public Sphere(string name, Vector3 position, float radius) : base(position)
        {
            Name = name;

            Mesh = new MeshIcosphere(position, Vector3.One)
            {
                Wireframe = true
            };
            Mesh.Material.Translucent = true;
            Mesh.Scale = new Vector3(radius);

            Spheres.Add(this);
            Radius = radius;

            AllowRotation = false;
        }
Example #5
0
        public Sphere() : base(Vector3.Zero)
        {
            Name = "sphere" + Spheres.Count;

            Mesh = new MeshIcosphere(Vector3.Zero, Vector3.One)
            {
                Wireframe = true
            };
            Mesh.Material.Translucent = true;

            Radius     = lastRadius;
            Mesh.Scale = new Vector3(Radius);

            Spheres.Add(this);
            AllowRotation = false;
        }
Example #6
0
        public Cloud(string name, CloudType type, Vector3 position, Vector4 color, float spin, float radius) : base(position)
        {
            Name = name;
            Spin = spin;

            Mesh = new MeshIcosphere(position, Vector3.One, true);
            Mesh.Material.Translucent = true;
            Mesh.Scale = new Vector3(radius);

            Clouds.Add(this);

            Type   = type;
            Radius = radius;
            Color  = color;

            AllowRotation = false;
        }
Example #7
0
        public DustCloud(string name, DustCloudType type, Vector3 position, float resources, Vector4 color, float spin, float radius, bool refill) : base(position)
        {
            Name      = name;
            Spin      = spin;
            Resources = resources;
            Refill    = refill;

            Mesh = new MeshIcosphere(position, Vector3.One, true);
            Mesh.Material.Translucent = true;
            Mesh.Scale = new Vector3(radius);

            DustClouds.Add(this);

            Type   = type;
            Radius = radius;
            Color  = color;

            AllowRotation = false;
        }
Example #8
0
 private void CreateMesh()
 {
     Mesh       = new MeshIcosphere(Position, Rotation, new Vector3(0, 0, 1), false);
     Mesh.Scale = new Vector3(type.PixelSize * 13);
 }
Example #9
0
 public Icosphere(Vector3 position, Vector3 color) : base(position)
 {
     Mesh = new MeshIcosphere(position, color);
 }
Example #10
0
 public Icosphere(Vector3 position, Vector3 color, bool detailed) : base(position)
 {
     Mesh = new MeshIcosphere(position, color, detailed);
 }