填空題

使用unity3D引擎過程中,
Ray ray=Camera.main.ScreenPointToRay(Input.mousePosition);
RaycastHithit;
if(Physics.Raycast(ray,outhit,100))
Debug.Log(hit.());
以上代碼得到射線和碰撞體的交點(diǎn)的坐標(biāo)。


您可能感興趣的試卷