From 5114103e23302f36b0db7a2aec2fe96a51db0d14 Mon Sep 17 00:00:00 2001 From: Mudkipze Date: Fri, 12 Apr 2024 15:57:47 +0000 Subject: [PATCH] Update PhysicsServer2D naming for C# in ray-casting.rst Current documentation refers to "Physics2DServer" exclusively in C# code snippet, when the actual name should be PhysicsServer2D. --- 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 43908e8f6..5d6b240b2 100644 --- a/tutorials/physics/ray-casting.rst +++ b/tutorials/physics/ray-casting.rst @@ -63,7 +63,7 @@ Use the following code in 2D: public override void _PhysicsProcess(double delta) { var spaceRid = GetWorld2D().Space; - var spaceState = Physics2DServer.SpaceGetDirectState(spaceRid); + var spaceState = PhysicsServer2D.SpaceGetDirectState(spaceRid); } Or more directly: