21 lines
443 B
C++
21 lines
443 B
C++
#ifndef TRANSFORM_COMPONENT_H
|
|
#define TRANSFORM_COMPONENT_H
|
|
|
|
#include <glm/glm.hpp>
|
|
#include <glm/gtc/matrix_transform.hpp>
|
|
|
|
class TransformComponent {
|
|
public:
|
|
TransformComponent();
|
|
~TransformComponent();
|
|
|
|
glm::vec3 position;
|
|
glm::vec3 rotation; // Euler angles (pitch, yaw, roll) in degrees.
|
|
glm::vec3 scale;
|
|
|
|
// Returns the world transform matrix.
|
|
glm::mat4 GetMatrix() const;
|
|
};
|
|
|
|
#endif // TRANSFORM_COMPONENT_H
|