Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
aegis2d::ecs::Transform Struct Reference

Where an entity is. More...

#include <aegis2d/ecs/components.hpp>

Public Attributes

Vec2 position {}
 Center of the entity.
 

Detailed Description

Where an entity is.

Positions are in logical pixels of the play area: origin at the top-left corner, x to the right, y down. The position is the center of the entity; Sprite and Collider are placed around it.

Member Data Documentation

◆ position

Vec2 aegis2d::ecs::Transform::position {}

Center of the entity.


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