質問編集履歴
1
コードの修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
```c#
|
2
|
+
RaycasyHit hitFPS;
|
2
3
|
Ray rayFPS = new Ray(Camera.main.gameObject.transform.position, Camera.main.gameObject.transform.forward);
|
3
4
|
Debug.DrawRay(rayFPS.origin, rayFPS.direction * distance, Color.red);
|
4
5
|
if (Physics.Raycast(rayFPS, out hitFPS, distance))
|