Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
rtp::ecs::components::Velocity Struct Reference

Component representing a 2D velocity. More...

#include <Velocity.hpp>

Collaboration diagram for rtp::ecs::components::Velocity:

Public Attributes

Vec2f direction {0.0f, 0.0f}
 Velocity in X and Y directions.
 
float speed {0.0f}
 Speed multiplier.
 

Detailed Description

Component representing a 2D velocity.

Definition at line 17 of file Velocity.hpp.

Member Data Documentation

◆ direction

Vec2f rtp::ecs::components::Velocity::direction {0.0f, 0.0f}

◆ speed

float rtp::ecs::components::Velocity::speed {0.0f}

Speed multiplier.

Definition at line 19 of file Velocity.hpp.

Referenced by rtp::client::EntityTemplate::makeFromDef(), and rtp::client::EntityTemplate::makeParallax().


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