mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Add some documentation for RayCast2D about is_colliding and get_collider quirks
This commit is contained in:
@@ -23032,12 +23032,14 @@
|
|||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Return whether the closest object the ray is pointing to is colliding with the vector, with the vector length considered.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_collider" qualifiers="const" >
|
<method name="get_collider" qualifiers="const" >
|
||||||
<return type="Object">
|
<return type="Object">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<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>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_collider_shape" qualifiers="const" >
|
<method name="get_collider_shape" qualifiers="const" >
|
||||||
|
|||||||
Reference in New Issue
Block a user