示例#1
0
        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);
        }