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
17
namespace
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_ */
Vec2.hpp
Declaration of the 2-dimensional vector class.
rtp::ecs::components
File : Ammo.hpp License: MIT Author : Elias Josué HAJJAR LLAUQUEN elias-josue.hajjar-llauquen@epitech...
Definition
Ammo.hpp:13
rtp::Vec2< float >
rtp::ecs::components::Transform
Component representing position, rotation, and scale of an entity.
Definition
Transform.hpp:23
rtp::ecs::components::Transform::rotation
float rotation
Rotation in degrees.
Definition
Transform.hpp:25
rtp::ecs::components::Transform::scale
Vec2f scale
Scale factors for X and Y axes.
Definition
Transform.hpp:26
rtp::ecs::components::Transform::position
Vec2f position
X and Y coordinates.
Definition
Transform.hpp:24
common
include
RType
ECS
Components
Transform.hpp
Generated by
1.9.8