From b7858f1526f6d038502c2b0f3d3784b97e4a0fd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diogo=20Mendon=C3=A7a?= Date: Mon, 26 Feb 2024 21:29:50 +0000 Subject: [PATCH] fix(transform): make global getters const Co-authored-by: Ricardo Antunes --- engine/include/cubos/engine/transform/local_to_world.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/include/cubos/engine/transform/local_to_world.hpp b/engine/include/cubos/engine/transform/local_to_world.hpp index 6c2bac7e94..4932a983bc 100644 --- a/engine/include/cubos/engine/transform/local_to_world.hpp +++ b/engine/include/cubos/engine/transform/local_to_world.hpp @@ -28,15 +28,15 @@ namespace cubos::engine /// @brief Gets global position of the entity. /// @return Position vector in world space. - glm::vec3 worldPosition(); + glm::vec3 worldPosition() const; /// @brief Gets global rotation of the entity. /// @return Rotation quaternion in world space. - glm::quat worldRotation(); + glm::quat worldRotation() const; /// @brief Gets global scale of the entity. /// @return Scale value in world space. - float worldScale(); + float worldScale() const; }; } // namespace cubos::engine