|
Kemena3D
|
Data descriptor for a single particle system attached to a scene object. More...
#include <kparticle.h>
Public Attributes | |
| kString | uuid |
| Unique identifier for this particle system. | |
| kString | name = "Particle System" |
| Human-readable display name. | |
| bool | isActive = true |
| Whether this system emits/simulates particles. | |
| bool | looping = true |
| Whether emission restarts after one cycle. | |
| int | maxParticles = 100 |
| Maximum number of live particles at once. | |
| float | emissionRate = 10.0f |
| Particles spawned per second. | |
| float | lifetime = 2.0f |
| Each particle's lifespan in seconds. | |
| float | gravityScale = 1.0f |
| Multiplier applied to gravity acting on particles. | |
| kVec3 | startVelocity = kVec3(0.0f, 1.0f, 0.0f) |
| Base initial velocity direction/magnitude. | |
| float | startSpeed = 1.0f |
| Scalar speed applied to the start velocity. | |
| kVec3 | velocityVariance = kVec3(0.1f, 0.1f, 0.1f) |
| Per-axis random spread added to start velocity. | |
| kVec4 | colorStart = kVec4(1.0f, 1.0f, 1.0f, 1.0f) |
| Particle color (RGBA) at birth. | |
| kVec4 | colorEnd = kVec4(1.0f, 1.0f, 1.0f, 0.0f) |
| Particle color (RGBA) at death. | |
| float | sizeStart = 0.1f |
| Particle size at birth. | |
| float | sizeEnd = 0.0f |
| Particle size at death. | |
Data descriptor for a single particle system attached to a scene object.
Store instances in kObject via addParticle() / removeParticle(). At game-start the runtime reads these descriptors and spawns live emitters.
| float kemena::kParticle::emissionRate = 10.0f |
Particles spawned per second.
| float kemena::kParticle::gravityScale = 1.0f |
Multiplier applied to gravity acting on particles.
| bool kemena::kParticle::isActive = true |
Whether this system emits/simulates particles.
| float kemena::kParticle::lifetime = 2.0f |
Each particle's lifespan in seconds.
| bool kemena::kParticle::looping = true |
Whether emission restarts after one cycle.
| int kemena::kParticle::maxParticles = 100 |
Maximum number of live particles at once.
| kString kemena::kParticle::name = "Particle System" |
Human-readable display name.
| float kemena::kParticle::sizeEnd = 0.0f |
Particle size at death.
| float kemena::kParticle::sizeStart = 0.1f |
Particle size at birth.
| float kemena::kParticle::startSpeed = 1.0f |
Scalar speed applied to the start velocity.
Base initial velocity direction/magnitude.
| kString kemena::kParticle::uuid |
Unique identifier for this particle system.
Per-axis random spread added to start velocity.