單項選擇題

public class ExampleClass:MonoBehaviour{public Transform from;public Transformto;public float speed=0.1F;void Update(){transform.rotation=Quaternion.()(from.rotation,to.rotation,Time.time*speed);}}以上代碼使游戲對象從開始旋轉,緩慢的轉動直到旋轉達到目標旋轉值。

A.Euler
B.LookRotation
C.Lerp
D.Update

微信掃碼免費搜題