2
0
Эх сурвалжийг харах

Make it clear Node2D.look_at() aligns the +X axis

Haoyu Qiu 1 жил өмнө
parent
commit
bd519bfbce

+ 2 - 1
doc/classes/Node2D.xml

@@ -44,7 +44,8 @@
 			<return type="void" />
 			<return type="void" />
 			<param index="0" name="point" type="Vector2" />
 			<param index="0" name="point" type="Vector2" />
 			<description>
 			<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>
 			</description>
 		</method>
 		</method>
 		<method name="move_local_x">
 		<method name="move_local_x">