Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
Homing.hpp
Go to the documentation of this file.
1
7#pragma once
8
9#include "RType/Math/Vec2.hpp"
10
11namespace rtp::ecs::components {
12
17struct Homing {
18 float steering{3.0f};
19 float range{600.0f};
20};
21
22} // 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
Marks an entity as homing and provides tuning parameters.
Definition Homing.hpp:17
float range
Detection range in pixels.
Definition Homing.hpp:19
float steering
Steering factor (per second) used to lerp direction toward target.
Definition Homing.hpp:18