Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
rtp::ecs::components::Transform Struct Reference

Component representing position, rotation, and scale of an entity. More...

#include <Transform.hpp>

Collaboration diagram for rtp::ecs::components::Transform:

Public Attributes

Vec2f position {0.0f, 0.0f}
 X and Y coordinates.
 
float rotation {0.0f}
 Rotation in degrees.
 
Vec2f scale {1.0f, 1.0f}
 Scale factors for X and Y axes.
 

Detailed Description

Component representing position, rotation, and scale of an entity.

Definition at line 23 of file Transform.hpp.

Member Data Documentation

◆ position

◆ rotation

float rtp::ecs::components::Transform::rotation {0.0f}

Rotation in degrees.

Definition at line 25 of file Transform.hpp.

◆ scale

Vec2f rtp::ecs::components::Transform::scale {1.0f, 1.0f}

Scale factors for X and Y axes.

Definition at line 26 of file Transform.hpp.


The documentation for this struct was generated from the following file: