summaryrefslogtreecommitdiff
path: root/core/variant
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2021-01-30 04:22:20 -0500
committerAaron Franke <arnfranke@yahoo.com>2021-02-16 18:33:23 -0500
commit7d9ad2b845fdb39e3d70b494b4a756ace7276dbd (patch)
tree9461ba7db9aa23d4f17f6d9c1af5908139779237 /core/variant
parentc0d01dcf6185e9090d6b6a1cd7682404d411b72b (diff)
Use Vector3.UP as a default value for look_at's up vector
Diffstat (limited to 'core/variant')
-rw-r--r--core/variant/variant_call.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant/variant_call.cpp b/core/variant/variant_call.cpp
index 48f9816074..54ca1a911d 100644
--- a/core/variant/variant_call.cpp
+++ b/core/variant/variant_call.cpp
@@ -1257,7 +1257,7 @@ static void _register_variant_builtin_methods() {
bind_method(Transform, rotated, sarray("axis", "phi"), varray());
bind_method(Transform, scaled, sarray("scale"), varray());
bind_method(Transform, translated, sarray("offset"), varray());
- bind_method(Transform, looking_at, sarray("target", "up"), varray());
+ bind_method(Transform, looking_at, sarray("target", "up"), varray(Vector3(0, 1, 0)));
bind_method(Transform, interpolate_with, sarray("xform", "weight"), varray());
bind_method(Transform, is_equal_approx, sarray("xform"), varray());