Skip to content

Commit

Permalink
feat(transform): add forward and up getters
Browse files Browse the repository at this point in the history
Co-Authored-By: João Miguel Nogueira <[email protected]>
  • Loading branch information
diogomsmiranda and Dageus committed Nov 29, 2024
1 parent f01e2a6 commit d48f9dc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions engine/include/cubos/engine/transform/local_to_world.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d48f9dc

Please sign in to comment.