From 6441b69378e73aa4cd6e076074b376400909fe88 Mon Sep 17 00:00:00 2001 From: OgGhostJelly <94768729+OgGhostJelly@users.noreply.github.com> Date: Fri, 19 May 2023 10:54:50 +0700 Subject: [PATCH] Fixed code snippet using 3.x name for PhysicsServer2D The code was originally using Physics2DServer which has been renamed to PhysicsServer2D in 4.x --- tutorials/physics/ray-casting.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/physics/ray-casting.rst b/tutorials/physics/ray-casting.rst index ccddf279a39..4992dd3273f 100644 --- a/tutorials/physics/ray-casting.rst +++ b/tutorials/physics/ray-casting.rst @@ -56,7 +56,7 @@ Use the following code in 2D: func _physics_process(delta): var space_rid = get_world_2d().space - var space_state = Physics2DServer.space_get_direct_state(space_rid) + var space_state = PhysicsServer2D.space_get_direct_state(space_rid) .. code-tab:: csharp