소스 검색

Fix ray casting tutorial typo

Teggy 1 개월 전
부모
커밋
3cc46eb1f5
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      tutorials/physics/ray-casting.rst

+ 3 - 3
tutorials/physics/ray-casting.rst

@@ -298,9 +298,9 @@ To obtain it using a camera, the following code can be used:
 
     func _input(event):
         if event is InputEventMouseButton and event.pressed and event.button_index == 1:
-              var camera3d = $Camera3D
-              var from = camera3d.project_ray_origin(event.position)
-              var to = from + camera3d.project_ray_normal(event.position) * RAY_LENGTH
+            var camera3d = $Camera3D
+            var from = camera3d.project_ray_origin(event.position)
+            var to = from + camera3d.project_ray_normal(event.position) * RAY_LENGTH
 
  .. code-tab:: csharp