浏览代码

Add some documentation for RayCast2D about is_colliding and get_collider quirks

ShadowKyogre 10 年之前
父节点
当前提交
631cb10e86
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      doc/base/classes.xml

+ 2 - 0
doc/base/classes.xml

@@ -23032,12 +23032,14 @@
 			<return type="bool">
 			</return>
 			<description>
+			Return whether the closest object the ray is pointing to is colliding with the vector, with the vector length considered.
 			</description>
 		</method>
 		<method name="get_collider" qualifiers="const" >
 			<return type="Object">
 			</return>
 			<description>
+			Return the closest object the ray is pointing to. Note that this does not consider the length of the vector, so you must also use [is_colliding] to check if the object returned is actually colliding with the ray.
 			</description>
 		</method>
 		<method name="get_collider_shape" qualifiers="const" >