-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
range_lerp gives odd values #25926
Comments
It would be nice to have a shorter, to the point script or project. The code pasted does a lot more than |
I can try to get a better script |
ok here is a more compact script..
|
Value from range_lerp is undefined if range size == 0 (istart == istop or ostart == ostop)
Converting to constants (for first iteration) gives:
|
I guess this simply needs to be documented. |
Fixed in #91615. ( |
Godot version: 3.0.6
Windows 7 Home 64 bit
it seems like I am getting odd values out of range_lerp that prints as
-1.#IND
I feel that this is because I am passing unordered min and max and passing and values below min and max.
however these things should not matter and passing values to lerp functions should be unclamped and scale depending on the order of the min and max values and their ranges.
here is a sample script on the issue.
The text was updated successfully, but these errors were encountered: