public virtual void Lerp(Satellite from, Satellite to, float t, AnimationCurve curve) { t = Mathf.Clamp01(t); float curvedT = curve.Evaluate(t); m_orbit = Orbit.Lerp(from.orbit, to.orbit, curvedT); m_distance = Mathf.LerpUnclamped(from.distance, to.distance, curvedT); m_focalPosition = Vector3.LerpUnclamped(from.focalPosition, to.focalPosition, curvedT); }
public void Lerp(Satellite from, Satellite to, float t) { Lerp(from, to, t, AnimationCurve.Linear(0f, 0f, 1f, 1f)); }