std::vector< Particle > & particles()
void deallocate(Particle *particle)
void forEachAlive(Fn &&fn) const
const std::vector< Particle > & particles() const
void forEachAlive(Fn &&fn)
ParticlePool(u32 capacity)
void deallocateByIndex(u32 index)
Deallocate a particle by its pool index.
glm::vec3 added_velocity
Carried on top of velocity, outside gravity, damping and the speed limit.