You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating system or device - Godot version:
Windows 7 64bit - Tested on Godot 2.03, 2.1 and current sources
Issue description (what happened, and what was expected):
What happened: Vector3.snapped rounds to the higher number (less negative) instead of the closest to the given argument when the value is negative.
What was expected:
Same behavior/result as GDScript.stepify or Vector2.snapped (rounded to the closest number).
Steps to reproduce:
Running a script with the following lines:
Operating system or device - Godot version:
Windows 7 64bit - Tested on Godot 2.03, 2.1 and current sources
Issue description (what happened, and what was expected):
What happened:
Vector3.snapped
rounds to the higher number (less negative) instead of the closest to the given argument when the value is negative.What was expected:
Same behavior/result as
GDScript.stepify
orVector2.snapped
(rounded to the closest number).Steps to reproduce:
Running a script with the following lines:
Gives as output:
The second line has a wrong snapped x value.
Link to minimal example project (optional but very welcome):
The text was updated successfully, but these errors were encountered: