summaryrefslogtreecommitdiff
path: root/core/math/basis.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-08-10 11:28:12 +0200
committerGitHub <noreply@github.com>2021-08-10 11:28:12 +0200
commit16d73fefdb0286f58b9cba86faeaf9155484d94b (patch)
treec675943a2083cbde012e459f785c8c0c44e09392 /core/math/basis.h
parent8b960a2d2b456b98efabd736e4db776580a5f846 (diff)
parent9f3ae0adcd734a16c299cd0f023212478b3960d3 (diff)
Merge pull request #50682 from aaronfranke/basis-looking-at
Move code for looking_at to Basis
Diffstat (limited to 'core/math/basis.h')
-rw-r--r--core/math/basis.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/math/basis.h b/core/math/basis.h
index 2889a4aa5e..3db2227b70 100644
--- a/core/math/basis.h
+++ b/core/math/basis.h
@@ -242,6 +242,8 @@ public:
operator Quaternion() const { return get_quaternion(); }
+ static Basis looking_at(const Vector3 &p_target, const Vector3 &p_up = Vector3(0, 1, 0));
+
Basis(const Quaternion &p_quaternion) { set_quaternion(p_quaternion); };
Basis(const Quaternion &p_quaternion, const Vector3 &p_scale) { set_quaternion_scale(p_quaternion, p_scale); }