public override void Step(float dt) { m_innerAction.Step(dt); if (m_innerAction.IsDone()) { float diff = m_innerAction.Elapsed - m_innerAction.Duration; if (diff > m_innerAction.Duration) { diff = MtMath.Fmod(diff, m_innerAction.Duration); } m_innerAction.StartWithTarget(m_target); // to prevent jerk. issue #390, 1247 m_innerAction.Step(0.0f); m_innerAction.Step(diff); } }
public override bool IsDone() { return(m_innerAction.IsDone()); }