engine/include/component_transform.h

27 lines
370 B
C
Raw Normal View History

2024-03-31 10:11:22 +00:00
#pragma once
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
2023-09-19 07:40:45 +00:00
#include "ecs.h"
2023-01-02 17:24:20 +00:00
namespace engine {
2023-05-01 12:55:49 +00:00
struct TransformComponent {
2024-03-31 10:11:22 +00:00
std::string tag;
2024-02-24 15:16:30 +00:00
2024-03-31 10:11:22 +00:00
glm::mat4 world_matrix;
2024-03-31 10:11:22 +00:00
glm::quat rotation;
glm::vec3 position;
glm::vec3 scale;
2023-05-01 12:55:49 +00:00
2024-03-31 10:11:22 +00:00
Entity parent;
2024-03-31 10:11:22 +00:00
bool is_static;
2023-05-01 12:55:49 +00:00
};
2023-01-02 17:24:20 +00:00
2024-03-31 10:11:22 +00:00
} // namespace engine