neikeq / GodotSharp

Moved to the Godot repo: https://github.com/godotengine/godot/tree/master/modules/mono
MIT License
60 stars 8 forks source link

Vector2.rotated inconsistent behavior #17

Closed Xydium closed 7 years ago

Xydium commented 7 years ago

The rotated method in C# is behaving differently from the rotated method in GDScript.

new Vector2(0, 1).rotated(Mathf.PI / 2) -> (0, -1)

Rotating 90 degrees is behaving as a 180 degree rotation.