diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2022-10-01 21:54:19 -0500 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2022-11-02 19:20:10 -0500 |
commit | 9e952c83869cd2c1d928beeb6493e635e2b690ff (patch) | |
tree | ba59f7a79bde5cf4aa878dad4478562f44a064a6 /core/variant | |
parent | 889868cbbc8beac74d5f49f9b7ef41efc4ae7d5a (diff) |
Allow getting Quaternion rotation in different Euler orders
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 f32233d808..7da46a2d05 100644 --- a/core/variant/variant_call.cpp +++ b/core/variant/variant_call.cpp @@ -1805,7 +1805,7 @@ static void _register_variant_builtin_methods() { bind_method(Quaternion, slerpni, sarray("to", "weight"), varray()); bind_method(Quaternion, spherical_cubic_interpolate, sarray("b", "pre_a", "post_b", "weight"), varray()); bind_method(Quaternion, spherical_cubic_interpolate_in_time, sarray("b", "pre_a", "post_b", "weight", "b_t", "pre_a_t", "post_b_t"), varray()); - bind_method(Quaternion, get_euler, sarray(), varray()); + bind_method(Quaternion, get_euler, sarray("order"), varray((int64_t)EulerOrder::YXZ)); bind_static_method(Quaternion, from_euler, sarray("euler"), varray()); bind_method(Quaternion, get_axis, sarray(), varray()); bind_method(Quaternion, get_angle, sarray(), varray()); |