|
coastline 0.0.4
|
A puff of smoke or exhaust, in a list of the pool linked by index. More...
#include <effects.h>

Public Attributes | |
| Vec3f | position |
| Vec3f | velocity |
| f32 | size |
| u16 | next |
| u8 | fade |
| u8 | alpha |
A puff of smoke or exhaust, in a list of the pool linked by index.
| Vec3f Particle::position |
The position of the puff in the world.
| Vec3f Particle::velocity |
How far the puff moves a second at its full opacity; it slows as it fades.
| f32 Particle::size |
The size, growing as the puff fades.
| u16 Particle::next |
The index of the next puff of its list in g_aParticlePool, or 0 at its end.
| u8 Particle::fade |
The share of the opacity remaining, from 0 to 255, falling as the puff grows.
| u8 Particle::alpha |
The opacity when the puff began, from 0 to 255; times fade over 256, it gives the opacity drawn.