diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2021-01-30 04:22:20 -0500 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2021-02-16 18:33:23 -0500 |
commit | 7d9ad2b845fdb39e3d70b494b4a756ace7276dbd (patch) | |
tree | 9461ba7db9aa23d4f17f6d9c1af5908139779237 /core/variant | |
parent | c0d01dcf6185e9090d6b6a1cd7682404d411b72b (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.cpp | 2 |
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()); |