浏览代码

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 5114103e23302f36b0db7a2aec2fe96a51db0d14)
Mudkipze 1 年之前
父节点
当前提交
3e50e984a6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/physics/ray-casting.rst

+ 1 - 1
tutorials/physics/ray-casting.rst

@@ -63,7 +63,7 @@ Use the following code in 2D:
     public override void _PhysicsProcess(double delta)
     public override void _PhysicsProcess(double delta)
     {
     {
         var spaceRid = GetWorld2D().Space;
         var spaceRid = GetWorld2D().Space;
-        var spaceState = Physics2DServer.SpaceGetDirectState(spaceRid);
+        var spaceState = PhysicsServer2D.SpaceGetDirectState(spaceRid);
     }
     }
 
 
 Or more directly:
 Or more directly: