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

One live particle, with what its emitter's ranges drew for it at birth. More...

#include <live_particles.h>

Public Attributes

glm::vec3 position {0.0f}
 World space.
glm::vec3 velocity {0.0f}
 World space.
float age = 0.0f
 Seconds since spawn.
float lifetime = 1.0f
 Seconds.
float size = 0.0f
 Half its width at birth; the size curve scales it over its life.
float angle = 0.0f
 Radians it was born turned by.
float spin = 0.0f
 Radians a second it turns.
uint32_t frame = 0
 The sheet frame it was born on (ParticleEmitter::randomFrame).
float trailClock = 0.0f
 Seconds since its trail last took a point.
uint32_t trailCount = 0
 Points its trail holds, newest first.

Detailed Description

One live particle, with what its emitter's ranges drew for it at birth.


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