Interpolation tutorial omits important info on lerp() #10362
Labels
area:class reference
Issues and PRs about the class reference, which should be addressed on the Godot engine repository
area:manual
Issues and PRs related to the Manual/Tutorials section of the documentation
enhancement
Godot 4.3:
Issue description:
The description and example for Vector2.lerp() makes it seem like the function automatically stops once the weight parameter hits or exceeds 1 or the target parameter is reached, mostly due to the looping gif and the minimalist code example.
I'd suggest at least mentioning that the user needs to actively limit their weight property or otherwise stop the lerp manually.
Suggested changes to the code example:
or checking if the target position is reached etc. But I feel like clamping t is the most universally applicable way to solve this.
I feel like a lot of the issue stems from the gif with the line "It will produce the following motion:" above it suggesting that there is some kind of automatic stop to the lerp.
This has been mentioned before in #9674 but the person reporting closed it themselves on the same day.
URL to the documentation page (if already existing):
https://docs.godotengine.org/en/stable/tutorials/math/interpolation.html
The text was updated successfully, but these errors were encountered: