浏览代码

Update rigid_body.rst

kkoang 2 年之前
父节点
当前提交
995196806e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/physics/rigid_body.rst

+ 1 - 1
tutorials/physics/rigid_body.rst

@@ -34,7 +34,7 @@ Here is a custom ``look_at()`` method that will work reliably with rigid bodies:
 .. tabs::
  .. code-tab:: gdscript GDScript
 
-    extends RigidBody
+    extends RigidBody3D
 
     func look_follow(state, current_transform, target_position):
         var up_dir = Vector3(0, 1, 0)