瀏覽代碼

[ci skip] update Raycast documentation

clarification that set_cast_to needs LOCAL point
and get_collision_point gives GLOBAL point

(cherry picked from commit 1445553fea268104bf7012785536c4e7c9c6b1e6)
Hubert Jarosz 9 年之前
父節點
當前提交
d55304c56f
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      doc/base/classes.xml

+ 2 - 0
doc/base/classes.xml

@@ -30627,6 +30627,7 @@
 			<return type="Vector3">
 			</return>
 			<description>
+				Returns collision point. This point is in [b]global[/b] coordinate system.
 			</description>
 		</method>
 		<method name="get_layer_mask" qualifiers="const">
@@ -30669,6 +30670,7 @@
 			<argument index="0" name="local_point" type="Vector3">
 			</argument>
 			<description>
+				Sets to which point ray should be casted. This point is in [b]local[/b] coordinate system.
 			</description>
 		</method>
 		<method name="set_enabled">