Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
PositionComponent.h
Go to the documentation of this file.
1/**
2 * @file PositionComponent.h
3 * @brief ECS component storing an entity's world-space position.
4 * @author Olympe Engine
5 * @date 2026-02-24
6 *
7 * @details
8 * PositionComponent is a plain-data ECS component that stores the 3-D
9 * position of an entity in world space. It is used by movement systems
10 * (e.g. Task_MoveToLocation in World mode) to read and write entity positions.
11 *
12 * C++14 compliant - no C++17/20 features.
13 */
14
15#pragma once
16
17#include "../../vector.h"
18
19namespace Olympe {
20
21/**
22 * @struct PositionComponent
23 * @brief ECS component: entity world-space position.
24 */
26{
27 /// World-space position of the entity.
29};
30
31} // namespace Olympe
< Provides AssetID and INVALID_ASSET_ID
ECS component: entity world-space position.
::Vector Position
World-space position of the entity.