コード例 #1
0
 public float Step()
 {
     if (config.interpolationType == Config.InterpolationType.Exponential)
     {
         currentValue = ETween.Step(
             currentValue, targetValue, config.interpolationSpeed);
     }
     else if (config.interpolationType == Config.InterpolationType.DampedSpring)
     {
         currentValue = DTween.Step(
             currentValue, targetValue, ref _velocity, config.interpolationSpeed);
     }
     else
     {
         currentValue = targetValue;
     }
     return(currentValue);
 }
コード例 #2
0
ファイル: Tween.cs プロジェクト: cobalt910/com.cobalt910.core
 public void Step(Quaternion target)
 {
     rotation = DTween.Step(rotation, target, ref velocity, omega);
 }
コード例 #3
0
ファイル: Tween.cs プロジェクト: cobalt910/com.cobalt910.core
 public void Step(Vector3 target)
 {
     position = DTween.Step(position, target, ref velocity, omega);
 }