Пример #1
0
        // Called when the game should update itself
        protected override void Update(GameTime gameTime)
        {
            updateCamera(gameTime);

            anim.Update(gameTime.ElapsedGameTime);

            models[0].Position = anim.Position;
            models[0].Rotation = anim.Rotation;

            base.Update(gameTime);
        }
Пример #2
0
        // Called when the game should update itself
        protected override void Update(GameTime gameTime)
        {
            updateCamera(gameTime);

            anim.Update(gameTime.ElapsedGameTime);

            models[0].Model.Meshes["Fan"].ParentBone.Transform =
                Matrix.CreateRotationZ(anim.Rotation.Z) *
                Matrix.CreateTranslation(anim.Position);

            base.Update(gameTime);
        }