diff options
author | Hendrik Brucker <hendrik.brucker@mail.de> | 2022-08-07 12:25:05 +0200 |
---|---|---|
committer | Hendrik Brucker <hendrik.brucker@mail.de> | 2022-08-07 12:25:05 +0200 |
commit | 36061c5dca6c45429509f9fe01e8d9d20841d0e6 (patch) | |
tree | d26b02cdc32fd02599bf75504e113ec6e47caf4d /core/variant | |
parent | 21f6916ffc52d83ac57b4f412f3eb8d6b40afebe (diff) |
Vector4/Vector4i: Add missing methods, tests and fix change of sign operator
Diffstat (limited to 'core/variant')
-rw-r--r-- | core/variant/variant_call.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/variant/variant_call.cpp b/core/variant/variant_call.cpp index d1f1b83457..5c298f9b3b 100644 --- a/core/variant/variant_call.cpp +++ b/core/variant/variant_call.cpp @@ -1737,9 +1737,15 @@ static void _register_variant_builtin_methods() { bind_method(Vector4, ceil, sarray(), varray()); bind_method(Vector4, round, sarray(), varray()); bind_method(Vector4, lerp, sarray("to", "weight"), varray()); + bind_method(Vector4, cubic_interpolate, sarray("b", "pre_a", "post_b", "weight"), varray()); + bind_method(Vector4, posmod, sarray("mod"), varray()); + bind_method(Vector4, posmodv, sarray("modv"), varray()); + bind_method(Vector4, snapped, sarray("step"), varray()); bind_method(Vector4, clamp, sarray("min", "max"), varray()); bind_method(Vector4, normalized, sarray(), varray()); bind_method(Vector4, is_normalized, sarray(), varray()); + bind_method(Vector4, direction_to, sarray("to"), varray()); + bind_method(Vector4, distance_to, sarray("to"), varray()); bind_method(Vector4, dot, sarray("with"), varray()); bind_method(Vector4, inverse, sarray(), varray()); bind_method(Vector4, is_equal_approx, sarray("with"), varray()); |