Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 public override bool IsDone()
 {
     return(m_innerAction.IsDone());
 }