diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2021-07-20 23:32:00 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2021-08-01 12:49:02 -0500 |
commit | 9f3ae0adcd734a16c299cd0f023212478b3960d3 (patch) | |
tree | 46fe469fc6df039da0710626ab790865bd67d343 /core/math/basis.h | |
parent | f06d201bb7a58e0399278ee29328740ea9efd16b (diff) | |
download | redot-engine-9f3ae0adcd734a16c299cd0f023212478b3960d3.tar.gz |
Move code for looking_at to Basis
Diffstat (limited to 'core/math/basis.h')
-rw-r--r-- | core/math/basis.h | 2 |
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); } |