Olympe Engine
2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Source
ECS
Components
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
19
namespace
Olympe
{
20
21
/**
22
* @struct PositionComponent
23
* @brief ECS component: entity world-space position.
24
*/
25
struct
PositionComponent
26
{
27
/// World-space position of the entity.
28
::Vector
Position
;
29
};
30
31
}
// namespace Olympe
Vector
Definition
vector.h:22
Olympe
< Provides AssetID and INVALID_ASSET_ID
Definition
BTEditorCommand.cpp:16
Olympe::PositionComponent
ECS component: entity world-space position.
Definition
PositionComponent.h:26
Olympe::PositionComponent::Position
::Vector Position
World-space position of the entity.
Definition
PositionComponent.h:28
Generated on Mon Apr 13 2026 08:15:19 for Olympe Engine by
1.9.8