插值是数学上的一个概念,在这里用公式表示就是:from + (to - from) * t;这也就是Lerp的返回值(用这个公式分别算出x,y,z)。 static function Lerp (from : Vector3, to : Vector3, t : float) : Vector3 from 是起始的位置,to是目标位置,按照数字t在from到to之间插值 using UnityEngine; using System.Collections; public class ThirdPersonCam : MonoBehaviour { <