Skip to content

Commit 3d03d73

Browse files
committed
Merge pull request godotengine#91293 from timothyqiu/look-at-2d
Make it clear `Node2D.look_at()` aligns the +X axis
2 parents 0af7559 + bd519bf commit 3d03d73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/classes/Node2D.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
<return type="void" />
4545
<param index="0" name="point" type="Vector2" />
4646
<description>
47-
Rotates the node so it points towards the [param point], which is expected to use global coordinates.
47+
Rotates the node so that its local +X axis points towards the [param point], which is expected to use global coordinates.
48+
[param point] should not be the same as the node's position, otherwise the node always looks to the right.
4849
</description>
4950
</method>
5051
<method name="move_local_x">

0 commit comments

Comments
 (0)