Transition walking-zombie look good.
This commit is contained in:
@@ -38,10 +38,9 @@ struct AnimSamplerNode : public AnimNode {
|
||||
m_current_time += dt;
|
||||
if (!m_override_ratio) {
|
||||
if (m_is_time_synced) {
|
||||
m_anim_ratio = fmodf((float)m_current_time, 1.0f);
|
||||
m_current_time = m_anim_ratio;
|
||||
m_anim_ratio = m_sync_track.CalcRatioFromSyncTime(m_current_time);
|
||||
} else {
|
||||
m_anim_ratio = fmodf((float)m_current_time / m_sync_track.m_duration, 1.0f);
|
||||
m_anim_ratio = fmodf((float)m_current_time / m_animation->duration(), 1.0f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user