blob: 7b74e434935be1f1df8c01895bced9fc30d5107e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#pragma once
#include <cstdint>
#include "api/Point.h"
#include "Component.h"
namespace crepe::api {
class Transform : public Component {
public:
Transform(uint32_t id, Point &, double, double);
~Transform();
Point position; // Translation (shift)
double rotation; // Rotation, in radians
double scale; // Multiplication factoh
};
} // namespace crepe::api
|