change: more alterations to movement, settingvalues, valuegroup, etc.

This commit is contained in:
Chris
2025-09-18 19:58:37 -04:00
parent aad8b78c22
commit 0fbef6aeee
12 changed files with 1286 additions and 597 deletions

View File

@@ -0,0 +1,24 @@
using System;
[Serializable]
public struct SettingValue<T>{
public T value;
public float smoothing; // Smoothing changes how fast value is changed.
public float easing; // Easing changes how fast smoothing is changed, when given a new value.
public float currentSmoothing; // Actively eased and accessed value
public float currentValue; // Actively smoothed and accessed value
public T refVel; // For use with SmoothDamp
public SettingValue(T initValue, float defaultEasing = 2f, float defaultSmoothing = 1f){
value = initValue;
easing = defaultEasing;
value = default;
smoothing = defaultSmoothing;
currentSmoothing = 0;
currentValue = 0;
refVel = default;
}
}