ParticleEmitter
struct ParticleEmitter {
const(Texture[]) regions;
Vector top_left;
Vector bottom_right;
Vector velocity_min;
Vector velocity_max;
Vector acceleration_min;
Vector acceleration_max;
Vector scale_min;
Vector scale_max;
Vector scale_velocity_min;
Vector scale_velocity_max;
float rotation_min;
float rotation_max;
float rotational_velocity_min;
float rotational_velocity_max;
int lifetime_min;
int lifetime_max;
int particle_min;
int particle_max;
ParticleBehavior behavior;
}
A disabled default is present on this object. To use it, use one of the other constructors or a factory function.
- this
this(in Texture[] regions)
A list of all possible texture regions that the particles can source from
- emit
Particle emit()
A structure that allows particle spawn settings to be tweaked