aboutsummaryrefslogtreecommitdiff
path: root/core/variant_call.cpp
diff options
context:
space:
mode:
authorJ08nY2016-10-01 21:20:09 +0200
committerRémi Verschelde2016-10-09 17:33:36 +0200
commit5b942f056ad96e8ae43609fbb558632bed3abfba (patch)
treec670dd4a5a44c4692edcb2e8df0539a758488876 /core/variant_call.cpp
parent44ba542de66854f879e71df54e6fe8e4356c4f99 (diff)
downloadgodot-5b942f056ad96e8ae43609fbb558632bed3abfba.tar.gz
godot-5b942f056ad96e8ae43609fbb558632bed3abfba.tar.zst
godot-5b942f056ad96e8ae43609fbb558632bed3abfba.zip
Vector3: added angle_to(Vector3 other)
(cherry picked from commit deb36b44d1a67157a44695ed7519605f431a3d89)
Diffstat (limited to 'core/variant_call.cpp')
-rw-r--r--core/variant_call.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp
index 4efeda735..f2e62b634 100644
--- a/core/variant_call.cpp
+++ b/core/variant_call.cpp
@@ -375,6 +375,7 @@ static void _call_##m_type##_##m_method(Variant& r_ret,Variant& p_self,const Var
VCALL_LOCALMEM0R(Vector3, ceil);
VCALL_LOCALMEM1R(Vector3, distance_to);
VCALL_LOCALMEM1R(Vector3, distance_squared_to);
+ VCALL_LOCALMEM1R(Vector3, angle_to);
VCALL_LOCALMEM1R(Vector3, slide);
VCALL_LOCALMEM1R(Vector3, reflect);
@@ -1428,6 +1429,7 @@ _VariantCall::addfunc(Variant::m_vtype,Variant::m_ret,_SCS(#m_method),VCALL(m_cl
ADDFUNC0(VECTOR3,VECTOR3,Vector3,ceil,varray());
ADDFUNC1(VECTOR3,REAL,Vector3,distance_to,VECTOR3,"b",varray());
ADDFUNC1(VECTOR3,REAL,Vector3,distance_squared_to,VECTOR3,"b",varray());
+ ADDFUNC1(VECTOR3,REAL,Vector3,angle_to,VECTOR3,"to",varray());
ADDFUNC1(VECTOR3,VECTOR3,Vector3,slide,VECTOR3,"by",varray());
ADDFUNC1(VECTOR3,VECTOR3,Vector3,reflect,VECTOR3,"by",varray());