Class TransformComponent¶
Defined in File transform.h
Class Documentation¶
-
class TransformComponent¶
Public Functions
-
TransformComponent() = default¶
-
explicit TransformComponent(const glm::vec3 &translation)¶
-
explicit TransformComponent(const glm::mat4 &transform)¶
-
TransformComponent(const glm::vec3 &translation, const glm::quat &rotation, const glm::vec3 &scale)¶
-
void set_matrix(const glm::mat4 &matrix)¶
-
void set_translation(const glm::vec3 &new_translation)¶
-
void set_rotation(const glm::quat &new_rotation)¶
-
void set_rotation_euler(const glm::vec3 &new_rotation_euler)¶
-
void set_scale(const glm::vec3 &new_scale)¶
-
void calculate_world_matrix(const glm::mat4 &root)¶
-
glm::mat4 &get_world_matrix()¶
-
const glm::mat4 &get_world_matrix() const¶
-
const glm::vec3 &get_translation() const¶
-
const glm::quat &get_rotation() const¶
-
const glm::vec3 &get_rotation_euler() const¶
-
const glm::vec3 &get_scale() const¶
-
TransformComponent() = default¶