27 [[nodiscard]]
bool IsEmitting()
const {
return m_emitting; }
30 void Burst(
int count);
35 bool m_emitting =
true;
40 vec3 m_velocityMin{-0.5F, 1.0F, -0.5F};
41 vec3 m_velocityMax{0.5F, 2.5F, 0.5F};
42 vec3 m_acceleration{0.0F, -2.0F, 0.0F};
44 f32 m_lifetimeMin = 0.6F;
45 f32 m_lifetimeMax = 1.2F;
46 f32 m_sizeStart = 0.18F;
49 vec4 m_colorStart{1.0F, 0.85F, 0.45F, 1.0F};
50 vec4 m_colorEnd{1.0F, 0.20F, 0.10F, 0.0F};
52 std::mt19937 m_rng{std::random_device{}()};
void SetEmitting(bool on)
void LoadProperties(const nlohmann::json &json) override
void Burst(int count)
Single-shot burst at the owner's current position (e.g. on death/hit).
void Update(f32 deltaTime) override