From d48f9dcae883db0a7b1582f8b0a6ea606af62a49 Mon Sep 17 00:00:00 2001 From: Diogo Miranda Date: Fri, 29 Nov 2024 19:10:28 +0000 Subject: [PATCH] feat(transform): add forward and up getters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: João Miguel Nogueira <101069446+Dageus@users.noreply.github.com> --- engine/include/cubos/engine/transform/local_to_world.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/engine/include/cubos/engine/transform/local_to_world.hpp b/engine/include/cubos/engine/transform/local_to_world.hpp index b3c0cb181a..babc6a01e3 100644 --- a/engine/include/cubos/engine/transform/local_to_world.hpp +++ b/engine/include/cubos/engine/transform/local_to_world.hpp @@ -40,6 +40,14 @@ namespace cubos::engine /// @return Rotation quaternion in world space. glm::quat worldRotation() const; + /// @brief Gets global forward vector of the entity. + /// @return Forward vector in world space. + glm::vec3 forward() const; + + /// @brief Gets global up vector of the entity. + /// @return Up vector in world space. + glm::vec3 up() const; + /// @brief Gets global scale of the entity. /// @return Scale value in world space. float worldScale() const;