microsoft / DirectXTK

The DirectX Tool Kit (aka DirectXTK) is a collection of helper classes for writing DirectX 11.x code in C++

Home Page:https://walbourn.github.io/directxtk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The tutorial "Using skinned models" lacks some Code to update the animation model

pupymk1 opened this issue · comments

Hi there!
I found in the tutorial Using skinned models

Within this section:

In Game.cpp, add to the TODO of Update:

float time = float(timer.GetTotalSeconds());
m_world = XMMatrixRotationY(time);

I guess there should be m_animation.Update(elapsedTime); to compute the current animation time.
BTW I really appreciate you for writing the whole tutorial, Good Job!

You are quite right. Cut & paste error :(

Fixed.

m_animation.Update(elapsedTime);

float time = float(timer.GetTotalSeconds());
m_world = XMMatrixRotationY(time);

Same problem in the DirectX 12 tutorial fixed there as well.