mirror of
https://github.com/orange-cpp/omath.git
synced 2026-04-19 12:43:26 +00:00
add projectile
This commit is contained in:
@@ -71,6 +71,20 @@ namespace omath::hud::widget
|
||||
Color color;
|
||||
float radius = 3.f;
|
||||
};
|
||||
struct ProjectileAim
|
||||
{
|
||||
enum class Figure
|
||||
{
|
||||
CIRCLE,
|
||||
SQUARE,
|
||||
};
|
||||
Vector2<float> position;
|
||||
Color color;
|
||||
float size = 3.f;
|
||||
float line_size = 1.f;
|
||||
Figure figure = Figure::SQUARE;
|
||||
};
|
||||
|
||||
|
||||
// ── Side-agnostic widgets (used inside XxxSide containers) ────────────────
|
||||
|
||||
|
||||
Reference in New Issue
Block a user