vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::ParticleEmitter Struct Reference

CPU-simulated particle emitter - muzzle flashes, impacts, smoke puffs. More...

#include <particle_emitter.h>

Public Attributes

float rate = 30.0f
 Per second.
float lifetime = 1.5f
 Seconds.
uint32_t maxParticles = 256
 Cap on live particles.
glm::vec3 velocity {0.0f, 2.0f, 0.0f}
 Initial, world space.
float spread = 1.0f
 Random velocity added per axis.
float softness = 1.0f
 1 = soft blob, 0 = hard disc.
bool additive = true
 Additive (sparks/fire) vs alpha (smoke).

Detailed Description

CPU-simulated particle emitter - muzzle flashes, impacts, smoke puffs.

Spawns at the entity's world position; size and colour lerp start -> end over each particle's life. Authored data only: live particles are ParticleSystem's (LiveParticles).


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