Jelajahi Sumber

Update doc for can_teleport_to

Rémi Verschelde 9 tahun lalu
induk
melakukan
e57dfe2663
1 mengubah file dengan 2 tambahan dan 3 penghapusan
  1. 2 3
      doc/base/classes.xml

+ 2 - 3
doc/base/classes.xml

@@ -15038,14 +15038,13 @@ returns:= "username=user&password=pass"
 			<description>
 			</description>
 		</method>
-		<method name="can_move_to">
+		<method name="can_teleport_to">
 			<return type="bool">
 			</return>
 			<argument index="0" name="position" type="Vector3">
 			</argument>
-			<argument index="1" name="arg1" type="bool">
-			</argument>
 			<description>
+			Returns whether the KinematicBody can be teleported to the destination given as an argument, checking all collision shapes of the body against potential colliders at the destination.
 			</description>
 		</method>
 		<method name="is_colliding" qualifiers="const">