Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
Transform.hpp
Go to the documentation of this file.
1
8#ifndef RTYPE_ECS_COMPONENTS_TRANSFORM_HPP_
9#define RTYPE_ECS_COMPONENTS_TRANSFORM_HPP_
10
11 #include "RType/Math/Vec2.hpp"
12
17namespace rtp::ecs::components {
18
23 struct Transform {
24 Vec2f position{0.0f, 0.0f};
25 float rotation{0.0f};
26 Vec2f scale{1.0f, 1.0f};
27 };
28} // namespace rtp::ecs::components
29
30#endif /* !RTYPE_ECS_COMPONENTS_TRANSFORM_HPP_ */
Declaration of the 2-dimensional vector class.
File : Ammo.hpp License: MIT Author : Elias Josué HAJJAR LLAUQUEN elias-josue.hajjar-llauquen@epitech...
Definition Ammo.hpp:13
Component representing position, rotation, and scale of an entity.
Definition Transform.hpp:23
float rotation
Rotation in degrees.
Definition Transform.hpp:25
Vec2f scale
Scale factors for X and Y axes.
Definition Transform.hpp:26
Vec2f position
X and Y coordinates.
Definition Transform.hpp:24