浏览代码

Fixed code snippet using 3.x name for PhysicsServer2D

The code was originally using Physics2DServer which has been renamed to PhysicsServer2D in 4.x
OgGhostJelly 2 年之前
父节点
当前提交
6441b69378
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/physics/ray-casting.rst

+ 1 - 1
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