|
Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
|
Component representing position, rotation, and scale of an entity. More...
#include <Transform.hpp>
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. | |
Component representing position, rotation, and scale of an entity.
Definition at line 23 of file Transform.hpp.
| Vec2f rtp::ecs::components::Transform::position {0.0f, 0.0f} |
X and Y coordinates.
Definition at line 24 of file Transform.hpp.
Referenced by rtp::client::NetworkSyncSystem::onRoomUpdate(), rtp::server::CollisionSystem::overlaps(), rtp::server::EnemyShootSystem::spawnBullet(), rtp::server::PlayerShootSystem::spawnBullet(), rtp::server::PlayerShootSystem::spawnChargedBullet(), and rtp::client::scenes::MenuScene::update().
| float rtp::ecs::components::Transform::rotation {0.0f} |
Rotation in degrees.
Definition at line 25 of file Transform.hpp.
| 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.