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::Homing Struct Reference

Marks an entity as homing and provides tuning parameters. More...

#include <Homing.hpp>

Collaboration diagram for rtp::ecs::components::Homing:

Public Attributes

float steering {3.0f}
 Steering factor (per second) used to lerp direction toward target.
 
float range {600.0f}
 Detection range in pixels.
 

Detailed Description

Marks an entity as homing and provides tuning parameters.

Definition at line 17 of file Homing.hpp.

Member Data Documentation

◆ range

float rtp::ecs::components::Homing::range {600.0f}

Detection range in pixels.

Definition at line 19 of file Homing.hpp.

Referenced by rtp::server::PlayerShootSystem::spawnBullet(), and rtp::server::PlayerShootSystem::spawnChargedBullet().

◆ steering

float rtp::ecs::components::Homing::steering {3.0f}

Steering factor (per second) used to lerp direction toward target.

Definition at line 18 of file Homing.hpp.

Referenced by rtp::server::PlayerShootSystem::spawnBullet(), and rtp::server::PlayerShootSystem::spawnChargedBullet().


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