diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-11-11 17:32:05 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-11-11 17:32:05 +0000 |
commit | 5bc0462311ab4c691102f0bc39d6ae03c61a287b (patch) | |
tree | eb3f2807f6300265ee1c4232681dfe1a86782df8 /lib/location.cpp | |
parent | Fix definition of shadowMapRegions (diff) | |
download | ilt-5bc0462311ab4c691102f0bc39d6ae03c61a287b.tar.bz2 ilt-5bc0462311ab4c691102f0bc39d6ae03c61a287b.tar.xz ilt-5bc0462311ab4c691102f0bc39d6ae03c61a287b.zip |
Add Location method for getting the rotation only transform
Diffstat (limited to 'lib/location.cpp')
-rw-r--r-- | lib/location.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/location.cpp b/lib/location.cpp index 732dd6d..9a31402 100644 --- a/lib/location.cpp +++ b/lib/location.cpp @@ -7,3 +7,9 @@ Location::getTransform() const { return glm::translate(pos) * rotate_ypr(rot); } + +glm::mat4 +Location::getRotationTransform() const +{ + return rotate_ypr(rot); +} |