Merge pull request #91293 from timothyqiu/look-at-2d

Make it clear `Node2D.look_at()` aligns the +X axis
This commit is contained in:
Rémi Verschelde 2024-04-30 17:03:34 +02:00
commit 3d03d73135
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -44,7 +44,8 @@
<return type="void" />
<param index="0" name="point" type="Vector2" />
<description>
Rotates the node so it points towards the [param point], which is expected to use global coordinates.
Rotates the node so that its local +X axis points towards the [param point], which is expected to use global coordinates.
[param point] should not be the same as the node's position, otherwise the node always looks to the right.
</description>
</method>
<method name="move_local_x">