Unity之飞盘游戏设计思路

1:枪发射射线:主摄像机发射射线,到屏幕上某点(保存为ShooterPoint=hit.point)。              1:使用方法:Camera.main.ScreenPointToRay(Input.mousePosition)生成射线              2:射线检测方法:Physics.Raycast(ray,out hit),物理下面的一个检测射线碰撞的方法。hit保存着
相关文章
相关标签/搜索