Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Classes | Namespaces
MovementComponent.h File Reference

ECS component storing an entity's velocity and maximum speed. More...

#include "../../vector.h"
+ Include dependency graph for MovementComponent.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Olympe::MovementComponent
 ECS component: entity velocity and movement constraints. More...
 

Namespaces

namespace  Olympe
 < Provides AssetID and INVALID_ASSET_ID
 

Detailed Description

ECS component storing an entity's velocity and maximum speed.

Author
Olympe Engine
Date
2026-02-24

MovementComponent is a plain-data ECS component used by movement tasks (e.g. Task_MoveToLocation in World mode). The task sets Velocity each frame; a physics/movement ECS system is expected to integrate the velocity and update the PositionComponent.

C++14 compliant - no C++17/20 features.

Definition in file MovementComponent.h.