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.

(cherry picked from commit 5114103e23)
This commit is contained in:
Mudkipze
2024-07-24 20:57:49 +02:00
committed by Max Hilbrunner
parent f810e958d5
commit 3e50e984a6
+1 -1
View File
@@ -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: