You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns the angle between the node and the [param point] in radians.
26
+
Returns the angle between the node and the [param point] in radians. See also [method look_at].
27
27
[url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/node2d_get_angle_to.png]Illustration of the returned angle.[/url]
28
28
</description>
29
29
</method>
@@ -45,7 +45,7 @@
45
45
<returntype="void" />
46
46
<paramindex="0"name="point"type="Vector2" />
47
47
<description>
48
-
Rotates the node so that its local +X axis points towards the [param point], which is expected to use global coordinates.
48
+
Rotates the node so that its local +X axis points towards the [param point], which is expected to use global coordinates. This method is a combination of both [method rotate] and [method get_angle_to].
49
49
[param point] should not be the same as the node's position, otherwise the node always looks to the right.
50
50
</description>
51
51
</method>
@@ -69,7 +69,7 @@
69
69
<returntype="void" />
70
70
<paramindex="0"name="radians"type="float" />
71
71
<description>
72
-
Applies a rotation to the node, in radians, starting from its current rotation.
72
+
Applies a rotation to the node, in radians, starting from its current rotation. This is equivalent to [code]rotation += radians[/code].
73
73
</description>
74
74
</method>
75
75
<methodname="to_global"qualifiers="const">
@@ -90,7 +90,7 @@
90
90
<returntype="void" />
91
91
<paramindex="0"name="offset"type="Vector2" />
92
92
<description>
93
-
Translates the node by the given [param offset] in local coordinates.
93
+
Translates the node by the given [param offset] in local coordinates. This is equivalent to [code]position += offset[/code].
0 commit comments