mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
Merge pull request #11213 from 98teg/patch-2
Fix ray casting tutorial typo
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user