mirror of
https://github.com/godotengine/godot.git
synced 2025-10-15 02:49:24 +00:00
Merge pull request #110878 from Calinou/doc-node2d-move-local
Fix and improve `Node2D.move_local_{x,y}()` description
This commit is contained in:
@@ -49,20 +49,20 @@
|
||||
[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">
|
||||
<method name="move_local_x" keywords="translate_object_local">
|
||||
<return type="void" />
|
||||
<param index="0" name="delta" type="float" />
|
||||
<param index="1" name="scaled" type="bool" default="false" />
|
||||
<description>
|
||||
Applies a local translation on the node's X axis based on the [method Node._process]'s [param delta]. If [param scaled] is [code]false[/code], normalizes the movement.
|
||||
Applies a local translation on the node's X axis with the amount specified in [param delta]. If [param scaled] is [code]false[/code], normalizes the movement to occur independently of the node's [member scale].
|
||||
</description>
|
||||
</method>
|
||||
<method name="move_local_y">
|
||||
<method name="move_local_y" keywords="translate_object_local">
|
||||
<return type="void" />
|
||||
<param index="0" name="delta" type="float" />
|
||||
<param index="1" name="scaled" type="bool" default="false" />
|
||||
<description>
|
||||
Applies a local translation on the node's Y axis based on the [method Node._process]'s [param delta]. If [param scaled] is [code]false[/code], normalizes the movement.
|
||||
Applies a local translation on the node's Y axis with the amount specified in [param delta]. If [param scaled] is [code]false[/code], normalizes the movement to occur independently of the node's [member scale].
|
||||
</description>
|
||||
</method>
|
||||
<method name="rotate">
|
||||
|
@@ -275,7 +275,7 @@
|
||||
[b]Note:[/b] Despite the naming convention, this operation is [b]not[/b] calculated in parent space for compatibility reasons. To translate in parent space, add [param offset] to the [member position] ([code]node_3d.position += offset[/code]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="translate_object_local">
|
||||
<method name="translate_object_local" keywords="move_local">
|
||||
<return type="void" />
|
||||
<param index="0" name="offset" type="Vector3" />
|
||||
<description>
|
||||
|
Reference in New Issue
Block a user