From 3cc46eb1f588cfd9994bc2aad48191e49fdbbbef Mon Sep 17 00:00:00 2001 From: Teggy <33127169+98teg@users.noreply.github.com> Date: Sun, 17 Aug 2025 10:09:25 +0200 Subject: [PATCH] Fix ray casting tutorial typo --- tutorials/physics/ray-casting.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorials/physics/ray-casting.rst b/tutorials/physics/ray-casting.rst index d712cf565..cdbd2e9b6 100644 --- a/tutorials/physics/ray-casting.rst +++ b/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