-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Description
Your Godot version:
4.5.stable
Issue description:
The documentation of the move_local_x
and move_local_y
functions are misleading or incorrect.
The docs say the following:
Applies a local translation on the node's X axis based on the Node._process()'s delta. If scaled is false, normalizes the movement.
Applies a local translation on the node's Y axis based on the Node._process()'s delta. If scaled is false, normalizes the movement.
Checking the C++ source there isn't any place where Node._process() delta
is used, the function just changes the position of the Node based on the number passed through the delta_p
parameter.
Tests:
Thanks to Sniffi on GDQuest Discord for providing tests.


Suggested solution:
The description of both functions should be changed to something like the following, removing the mention of Node._process() delta
:
move_local_x()
: "Applies a local translation on the node's X axis by thedelta
amount."move_local_y()
: "Applies a local translation on the node's Y axis by thedelta
amount."
I didn't open a PR because I'm not sure in how many places or repositories this change needs to be applied.
URL to the documentation page: