27 lines
570 B
C++
27 lines
570 B
C++
#pragma once
|
|
|
|
#include "Component.hpp"
|
|
|
|
#include "raylib.h"
|
|
|
|
#include <vector>
|
|
|
|
/**
|
|
* Predicts and renders the probe's near-future trajectory.
|
|
*/
|
|
struct ProjectionComponent : public Component {
|
|
std::vector<Vector2> points;
|
|
int steps = 30;
|
|
float stepDt = 1.0f / 60.0f;
|
|
float pointRadius = 2.4f;
|
|
bool highlightActive = false;
|
|
Color inactiveColor = Color{125, 146, 178, 120};
|
|
Color activeColor = Color{160, 206, 255, 220};
|
|
|
|
void Setup() override;
|
|
void Update(float dt) override;
|
|
void Cleanup() override;
|
|
|
|
void Draw() const;
|
|
};
|