單項(xiàng)選擇題Vector3 relativePos=target.position-transform.position;transform.rotation=Quaternion.()(relativePos);以上代碼使游戲?qū)ο蟪蚰繕?biāo)點(diǎn)。
A.Euler
B.LookRotation
C.Lerp
D.Update
您可能感興趣的試卷
你可能感興趣的試題
1.單項(xiàng)選擇題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);}}以上代碼使游戲?qū)ο髲拈_(kāi)始旋轉(zhuǎn),緩慢的轉(zhuǎn)動(dòng)直到旋轉(zhuǎn)達(dá)到目標(biāo)旋轉(zhuǎn)值。
A.Euler
B.LookRotation
C.Lerp
D.Update
2.單項(xiàng)選擇題float step=speed*Time.deltaTime;transform.rotation=Quaternion.RotateTowards(transform.rotation,target.rotation,step);根據(jù)以上代碼,請(qǐng)說(shuō)明以上代碼需要放到()函數(shù)中,才可以得到正確執(zhí)行。
A.Euler
B.LookRotation
C.Lerp
D.Update

最新試題
下面的游戲元素不能由音效系統(tǒng)直接提供或處理的是()。
題型:多項(xiàng)選擇題
()是Unity 3D自帶的自動(dòng)尋路組件。
題型:?jiǎn)雾?xiàng)選擇題
Direction Light平行光可置于任意位置,沒(méi)有距離的概念,但它有方向性,通過(guò)旋轉(zhuǎn)平行光可以實(shí)現(xiàn)光影的轉(zhuǎn)換。
題型:判斷題
在Button組件的檢視面板上修改UI按鈕交互屬性時(shí),()。
題型:多項(xiàng)選擇題
在調(diào)試項(xiàng)目過(guò)程中,可以通過(guò)添加Debug.Log(對(duì)象)語(yǔ)句來(lái)跟蹤變量的當(dāng)前值。
題型:判斷題