summaryrefslogtreecommitdiff
path: root/core/variant
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2021-09-01 09:32:42 -0300
committerGitHub <noreply@github.com>2021-09-01 09:32:42 -0300
commitcf59028972e013128703033bc2ef1677098138bf (patch)
tree55c06ac3be2230483b41eb349e8916dafaa975b7 /core/variant
parentac7541c1b1f435587afb1d7b74129c813a1c84dc (diff)
parent3f3739ccb56fdadab79e17e6a5865381e0821228 (diff)
Merge pull request #48237 from KoBeWi/they_came_from_angle
Add Vector2.from_angle() method
Diffstat (limited to 'core/variant')
-rw-r--r--core/variant/variant_call.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/variant/variant_call.cpp b/core/variant/variant_call.cpp
index c9c7eca40d..39207df9e7 100644
--- a/core/variant/variant_call.cpp
+++ b/core/variant/variant_call.cpp
@@ -1502,6 +1502,8 @@ static void _register_variant_builtin_methods() {
bind_method(Vector2, clamp, sarray("min", "max"), varray());
bind_method(Vector2, snapped, sarray("step"), varray());
+ bind_static_method(Vector2, from_angle, sarray("angle"), varray());
+
/* Vector2i */
bind_method(Vector2i, aspect, sarray(), varray());