Browse Source

Update rigid_body.rst

kkoang 2 năm trước cách đây
mục cha
commit
995196806e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)