diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-08-07 16:07:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-07 16:07:36 +0200 |
commit | 446fdc5b71370182439e382e6c71914c3612c734 (patch) | |
tree | f7223a639cf71adee7187f9db41c77e1b81f2904 /core/variant | |
parent | 64aeae66a4fc5b0175d241c94564536ebefab907 (diff) | |
parent | 36061c5dca6c45429509f9fe01e8d9d20841d0e6 (diff) |
Merge pull request #64027 from Geometror/add-vector4-tests
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()); |