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; }
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; }
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; }
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; }
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; }
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; }
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; }
private void CreateMesh() { Mesh = new MeshIcosphere(Position, Rotation, new Vector3(0, 0, 1), false); Mesh.Scale = new Vector3(type.PixelSize * 13); }
public Icosphere(Vector3 position, Vector3 color) : base(position) { Mesh = new MeshIcosphere(position, color); }
public Icosphere(Vector3 position, Vector3 color, bool detailed) : base(position) { Mesh = new MeshIcosphere(position, color, detailed); }