Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Attributes | List of all members
Olympe::MovementComponent Struct Reference

ECS component: entity velocity and movement constraints. More...

#include <MovementComponent.h>

+ Collaboration diagram for Olympe::MovementComponent:

Public Attributes

::Vector Velocity
 Current velocity vector (units per second) set by movement tasks.
 
float MaxSpeed = 0.0f
 Maximum movement speed (units per second). 0.0 means unconstrained.
 

Detailed Description

ECS component: entity velocity and movement constraints.

Definition at line 26 of file MovementComponent.h.

Member Data Documentation

◆ MaxSpeed

float Olympe::MovementComponent::MaxSpeed = 0.0f

Maximum movement speed (units per second). 0.0 means unconstrained.

Definition at line 32 of file MovementComponent.h.

◆ Velocity

::Vector Olympe::MovementComponent::Velocity

Current velocity vector (units per second) set by movement tasks.

Definition at line 29 of file MovementComponent.h.


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