maint: various clean up, movement tweaks, and smoothing fixes
This commit is contained in:
@@ -78,7 +78,7 @@ public class SettingValue<T> : IResettableSettingValue{
|
||||
currentSmoothing = Mathf.MoveTowards(currentSmoothing, targetSmoothing, targetEasing * targetEasing * Time.deltaTime);
|
||||
|
||||
if (typeof(T) == typeof(float)) {
|
||||
currentValue = (T)(object)Mathf.SmoothDamp((float)(object)currentValue, (float)(object)targetValue, ref refVelFloat, currentSmoothing * currentSmoothing * Time.deltaTime);
|
||||
currentValue = (T)(object)Mathf.SmoothDamp((float)(object)currentValue, (float)(object)targetValue, ref refVelFloat, currentSmoothing * Time.deltaTime);
|
||||
}
|
||||
|
||||
if (typeof(T) == typeof(Vector2)) {
|
||||
@@ -103,5 +103,6 @@ public class SettingValue<T> : IResettableSettingValue{
|
||||
defaultValue = targetValue;
|
||||
defaultSmoothing = targetSmoothing;
|
||||
defaultEasing = targetEasing;
|
||||
currentSmoothing = targetSmoothing;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user