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
12namespace rtp::ecs::components {
17struct Velocity {
18 Vec2f direction{0.0f, 0.0f};
19 float speed{0.0f};
20};
21} // namespace rtp::ecs::components
Declaration of the 2-dimensional vector class.
File : Ammo.hpp License: MIT Author : Elias Josué HAJJAR LLAUQUEN elias-josue.hajjar-llauquen@epitech...
Definition Ammo.hpp:13
Component representing a 2D velocity.
Definition Velocity.hpp:17
float speed
Speed multiplier.
Definition Velocity.hpp:19
Vec2f direction
Velocity in X and Y directions.
Definition Velocity.hpp:18