예제 #1
0
        private void CreateGround()
        {
            var model = new GenericModel(GetModel("ground"), Vector3.Zero, Vector3.Zero, Vector3.One, GraphicsDevice);

            Models.Add(model);
        }
예제 #2
0
        private void CreateShip()
        {
            var model = new GenericModel(GetModel("ship"), new Vector3(0, 400, 0), Vector3.Zero, new Vector3(1f), GraphicsDevice);

            Models.Add(model);
        }
예제 #3
0
        private void CreateModel(Model model, Vector3 position, Vector3 rotation, Vector3 scale)
        {
            var genericModel = new GenericModel(model, position, rotation, scale, GraphicsDevice);

            Models.Add(genericModel);
        }