Skip to content

Commit

Permalink
fix(transform): make global getters const
Browse files Browse the repository at this point in the history
Co-authored-by: Ricardo Antunes <[email protected]>
  • Loading branch information
DiogoMendonc-a and RiscadoA authored Feb 26, 2024
1 parent a8915d6 commit b7858f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engine/include/cubos/engine/transform/local_to_world.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b7858f1

Please sign in to comment.