Kaynağa Gözat

fixes in ActionSkewBy.cs

master
Ivan "KaiSD" Korystin 10 yıl önce
ebeveyn
işleme
dad9c55e38
1 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. +4
    -4
      Assets/scripts/coa4u/ActionsInterval/ActionSkewBy.cs

+ 4
- 4
Assets/scripts/coa4u/ActionsInterval/ActionSkewBy.cs Dosyayı Görüntüle

@@ -42,10 +42,10 @@ namespace coa4u
public override void Step(float dt)
{
float d = dt / duration;
Vector3 target = skewAngles1 * d;
((Actor)target).skewAngles1 += target;
target = skewAngles2 * d;
((Actor)target).skewAngles2 += target;
Vector3 vTarget = skewAngles1 * d;
((Actor)target).skewAngles1 += vTarget;
vTarget = skewAngles2 * d;
((Actor)target).skewAngles2 += vTarget;
}
}
}