25 lines
328 B
C++
25 lines
328 B
C++
/**
|
|
* @file transform.hpp
|
|
* @brief Transform components for position, velocity, and rotation
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
struct Position {
|
|
float x = 0.0f;
|
|
float y = 0.0f;
|
|
};
|
|
|
|
struct Velocity {
|
|
float x = 0.0f;
|
|
float y = 0.0f;
|
|
};
|
|
|
|
struct Rotation {
|
|
float angle = 0.0f;
|
|
};
|
|
|
|
struct Scale {
|
|
float x = 1.0f;
|
|
float y = 1.0f;
|
|
};
|