1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Turn Rect2's 'intersects_touch()' into an extra argument of 'intersects()'

This commit is contained in:
Michael Alexsander
2020-02-08 14:43:08 -03:00
parent f83f1d7c9b
commit 8c8c48a7ad
4 changed files with 27 additions and 26 deletions

View File

@@ -143,8 +143,11 @@
</return>
<argument index="0" name="b" type="Rect2">
</argument>
<argument index="1" name="include_borders" type="bool" default="false">
</argument>
<description>
Returns [code]true[/code] if the [Rect2] overlaps with another.
Returns [code]true[/code] if the [Rect2] overlaps with [code]b[/code] (i.e. they have at least one point in common).
If [code]include_borders[/code] is [code]true[/code], they will also be considered overlapping if their borders touch, even without intersection.
</description>
</method>
<method name="is_equal_approx">