Unity之飛盤遊戲設計思路

1:槍發射射線:主攝像機發射射線,到屏幕上某點(保存爲ShooterPoint=hit.point)。              1:使用方法:Camera.main.ScreenPointToRay(Input.mousePosition)生成射線              2:射線檢測方法:Physics.Raycast(ray,out hit),物理下面的一個檢測射線碰撞的方法。hit保存着
相關文章
相關標籤/搜索