示例#1
0
 public Ship(String ID, String GameViewID)
     : base(ID, GameViewID)
 {
     this.Scale = new Vector3(0.1f, 0.1f, 0.1f);
     #if RELEASE
     sphere = new Sphere(ID + "_sphere", 1f);
     this.Children.Add(sphere);
     #endif
 }
示例#2
0
        public Laser(String ID,String modelFile,float scale)
            : base(ID,null)
        {
            this._fileName = modelFile;
            this.Scale = new Vector3(scale);

            sphere = new Sphere(ID + "_sphere", 0.1f*scale);
            this.Children.Add(sphere);

            Updateable = true;
        }
示例#3
0
        public Planet(String ID, String GameViewID, float Scale)
            : base(ID, GameViewID)
        {
            AmbientColor = Color.Black;
            AmbientIntensity = .02f;
            CloudSpeed = .00025f;
            CloudHeight = .0001f;
            CloudShadowIntensity = .2f;

            Rotation = new Quaternion(0, 0, 0, 1);
            this.Scale = new Vector3(Scale, Scale, Scale);
            this.LightPosition = new Vector3(60, 60, 60);

            sphere = new Sphere(ID + "_sphere", Scale);
            this.Children.Add(sphere);
        }