Air-Trap
1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
Velocity.hpp
Go to the documentation of this file.
1
/*
2
** EPITECH PROJECT, 2025
3
** Air-Trap
4
** File description:
5
** Velocity
6
*/
7
8
#pragma once
9
10
#include "
RType/Math/Vec2.hpp
"
11
12
namespace
rtp::ecs::components
{
17
struct
Velocity
{
18
Vec2f
direction
{0.0f, 0.0f};
19
float
speed
{0.0f};
20
};
21
}
// namespace rtp::ecs::components
Vec2.hpp
Declaration of the 2-dimensional vector class.
rtp::ecs::components
File : Ammo.hpp License: MIT Author : Elias Josué HAJJAR LLAUQUEN elias-josue.hajjar-llauquen@epitech...
Definition
Ammo.hpp:13
rtp::Vec2< float >
rtp::ecs::components::Velocity
Component representing a 2D velocity.
Definition
Velocity.hpp:17
rtp::ecs::components::Velocity::speed
float speed
Speed multiplier.
Definition
Velocity.hpp:19
rtp::ecs::components::Velocity::direction
Vec2f direction
Velocity in X and Y directions.
Definition
Velocity.hpp:18
common
include
RType
ECS
Components
Velocity.hpp
Generated by
1.9.8