2023-05-01 12:55:49 +00:00
|
|
|
#ifndef ENGINE_INCLUDE_COMPONENTS_TRANSFORM_H_
|
|
|
|
#define ENGINE_INCLUDE_COMPONENTS_TRANSFORM_H_
|
2023-01-02 17:24:20 +00:00
|
|
|
|
2023-07-04 16:08:28 +00:00
|
|
|
#include <string>
|
|
|
|
|
2023-01-02 17:24:20 +00:00
|
|
|
#include <glm/gtc/quaternion.hpp>
|
|
|
|
#include <glm/mat4x4.hpp>
|
2023-05-01 12:55:49 +00:00
|
|
|
#include <glm/vec3.hpp>
|
2023-01-02 17:24:20 +00:00
|
|
|
|
|
|
|
namespace engine {
|
|
|
|
|
2023-05-01 12:55:49 +00:00
|
|
|
struct TransformComponent {
|
2023-08-22 22:41:08 +00:00
|
|
|
glm::mat4 world_matrix;
|
|
|
|
|
2023-05-01 12:55:49 +00:00
|
|
|
glm::quat rotation;
|
2023-08-22 22:41:08 +00:00
|
|
|
glm::vec3 position;
|
2023-05-01 12:55:49 +00:00
|
|
|
glm::vec3 scale;
|
|
|
|
|
|
|
|
std::string tag;
|
|
|
|
uint32_t parent;
|
2023-08-22 22:41:08 +00:00
|
|
|
|
|
|
|
bool is_static;
|
2023-05-01 12:55:49 +00:00
|
|
|
};
|
2023-01-02 17:24:20 +00:00
|
|
|
|
2023-05-01 12:55:49 +00:00
|
|
|
} // namespace engine
|
2023-01-02 17:24:20 +00:00
|
|
|
|
2023-05-01 12:55:49 +00:00
|
|
|
#endif
|