Skip to content

Commit 3cc46eb

Browse files
authored
Fix ray casting tutorial typo
1 parent 2c0b430 commit 3cc46eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorials/physics/ray-casting.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,9 @@ To obtain it using a camera, the following code can be used:
298298

299299
func _input(event):
300300
if event is InputEventMouseButton and event.pressed and event.button_index == 1:
301-
var camera3d = $Camera3D
302-
var from = camera3d.project_ray_origin(event.position)
303-
var to = from + camera3d.project_ray_normal(event.position) * RAY_LENGTH
301+
var camera3d = $Camera3D
302+
var from = camera3d.project_ray_origin(event.position)
303+
var to = from + camera3d.project_ray_normal(event.position) * RAY_LENGTH
304304

305305
.. code-tab:: csharp
306306

0 commit comments

Comments
 (0)