This commit is contained in:
Danny Robson 2020-03-30 12:29:24 +11:00
parent a69df0ae02
commit 7b5a0b7ad0

View File

@ -314,8 +314,8 @@ quaternion<T>::look (vector<3,T> fwd, vector<3,T> up)
CHECK (is_normalised (fwd));
CHECK (is_normalised (up));
constexpr cruft::vector3<T> FWD { 0, 0, -1 };
constexpr cruft::vector3<T> UP { 0, 1, 0 };
constexpr cruft::vector3<T> FWD { 0, 0, -1 };
constexpr cruft::vector3<T> UP { 0, 1, 0 };
// find the rotation from the world fwd to the object fwd
auto q1 = from_to (FWD, fwd);