aboutsummaryrefslogtreecommitdiff
path: root/modules/mono/glue/cs_files/Vector3.cs
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mono/glue/cs_files/Vector3.cs')
-rw-r--r--modules/mono/glue/cs_files/Vector3.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/mono/glue/cs_files/Vector3.cs b/modules/mono/glue/cs_files/Vector3.cs
index 57e4494f7..085a4f004 100644
--- a/modules/mono/glue/cs_files/Vector3.cs
+++ b/modules/mono/glue/cs_files/Vector3.cs
@@ -242,6 +242,12 @@ namespace Godot
z = v.z;
}
+ public Vector3 Slerp(Vector3 b, real_t t)
+ {
+ real_t theta = AngleTo(b);
+ return Rotated(Cross(b), theta * t);
+ }
+
public Vector3 Slide(Vector3 n)
{
return this - n * Dot(n);