struct
Particle
Particle data: the 64 built-in bytes plus four custom attributes.
- Module
- Particles
- Header
#include "Particles/Particle.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
static constexpr uint32_t | kCustomAttributes | Default 4. |
Vec3 | position | 12 bytes - World position |
float | lifetime | 4 bytes - Current age |
Vec3 | velocity | 12 bytes - Current velocity |
float | maxLifetime | 4 bytes - Total lifetime |
Vec2 | size | 8 bytes - Billboard size |
float | rotation | 4 bytes - Z rotation in radians |
float | angularVel | 4 bytes - Angular velocity |
Vec4 | color | 16 bytes - RGBA color |
float custom[kCustomAttributes] = | The emitter's custom attributes (attr.<name> in an expression), in the order the emitter's scripts first name them. Zero at spawn; carried for the particle's whole life; on the GPU path they live in a parallel buffer. |
Public functions
| Returns | Name | Description |
|---|---|---|
float | GetNormalizedAge | Get normalized age [0, 1] |
bool | IsAlive |
Function details
GetNormalizedAge
C++
float GetNormalizedAge() constGet normalized age [0, 1]
IsAlive
C++
bool IsAlive() constGenerated from Particles/Particle.h via particles.json · Oct 31, 2026Version 1.0.0