void Update() { var dt = Time.deltaTime; var dtt = dt * speed * (polarDirection ? 1f : -1f); polar.Horizontal(dtt); Apply(1f); angle = Mathf.Lerp(angle, _angle, dt); distance = Mathf.Lerp(distance, _distance, dt); }
void Update() { var dt = Time.deltaTime; var dtt = dt * speed * (polarDirection ? 1f : -1f); polar.Horizontal(dtt); Apply(1f); angle = Mathf.Lerp(angle, _angle, dt); distance = Mathf.Lerp(distance, _distance, dt); }