Was the .rotated() operation for Vector2D changed?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Elf_Ears
:warning: Old Version Published before Godot 3 was released.

Previously when I used .rotated() on Vector2D in 1.1 it would work and rotate the vector by the specified degrees, however now in 2.0 I’m getting all these weird results with weird angles upon using .move in KinematicBody2D…
Any help appreciated!

:bust_in_silhouette: Reply From: Calinou

Vector2 uses radians for rotations, instead of degrees.

If so, you can use this instead (90 being the angle in degrees here):

Vector2(5, 3).rotated(deg2rad(90))