diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-11-24 11:50:16 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-11-24 11:50:16 +0100 |
commit | 5f710fedcbbf43f65e0ef1241f22e06d42cf79b9 (patch) | |
tree | 2c97cd0a635632d5a32788ae6c9f4a99c7c4e95d /src/crepe/api/Transform.h | |
parent | 2052988dba049cfa2032d01ff9e6f7bb53d084fe (diff) | |
parent | 1499363d85abedbdb571e33801b821f4dfabc638 (diff) |
Merge remote-tracking branch 'origin/master' into max/scenes
Diffstat (limited to 'src/crepe/api/Transform.h')
-rw-r--r-- | src/crepe/api/Transform.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/crepe/api/Transform.h b/src/crepe/api/Transform.h index 18aa293..6243a93 100644 --- a/src/crepe/api/Transform.h +++ b/src/crepe/api/Transform.h @@ -1,8 +1,7 @@ #pragma once -#include "api/Vector2.h" - #include "Component.h" +#include "types.h" namespace crepe { @@ -15,7 +14,7 @@ namespace crepe { class Transform : public Component { public: //! Translation (shift) - Vector2 position = {0, 0}; + vec2 position = {0, 0}; //! Rotation, in degrees double rotation = 0; //! Multiplication factor @@ -28,7 +27,7 @@ protected: * \param rotation The rotation of the GameObject * \param scale The scale of the GameObject */ - Transform(game_object_id_t id, const Vector2 & point, double rotation, double scale); + Transform(game_object_id_t id, const vec2 & point, double rotation, double scale); /** * There is always exactly one transform component per entity * \return 1 |