-
-
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
Vector2 math bit corruption #50251
Comments
The cause is the same as in #50022:
Output:
|
Not yet, see #288. |
@SlitheringMule I agree with you. Although I think having 32-bit floats as an option is still useful. That said, this issue is a duplicate of godotengine/godot-proposals#892, closing. If you want to see this implemented, feel free to give the proposal a 👍 and let people know about this problem and the proposal. |
Godot version
3.3.2.stable.official
System information
Windows 10
Issue description
Doing maths with _Vector2_s returns slightly corrupted answers 👀, though the x and y components should be floats and not lose any precision, leading me to believe that this is not due to floating point errors.
This might be due to unnecessary maths going on in the background, perhaps deteriating the precision of the numbers.
The example in the steps to reproduce better illustrate the problem.
This bug might lead to rotated _Vector2_s having a value larger than their original length!
Steps to reproduce
Minimal reproduction project
Run the above code in Godot.
The text was updated successfully, but these errors were encountered: