Exemplo n.º 1
0
        public Box(String ID, String textureName, String normalMapTexture, String GameViewID, float Scale)
            : base(ID, GameViewID)
        {
            _textureName = textureName;
            _normalMapTexture = normalMapTexture;
            this.Scale = new Vector3(Scale, Scale, Scale);
            sphere = new Sphere(ID + "_sphere", Scale);
            this.Children.Add(sphere);

            // create properties
            PickableProperty pickableProperty = new PickableProperty();
            Properties.Add(ActorPropertyType.PICKABLE, pickableProperty);
        }
Exemplo n.º 2
0
        public MeshObject(String ID, String modelFile, float scale)
            : base(ID, null)
        {
            _modelFileName = modelFile;
            this.Scale = new Vector3(scale, scale, scale);

            #if DEBUG
               // sphere = new Sphere(ID + "_sphere",scale);
            //this.Children.Add(sphere);
            #endif
            // create properties
            PickableProperty pickableProperty = new PickableProperty();
            Properties.Add(ActorPropertyType.PICKABLE, pickableProperty);

            Material = new Material();
        }