class
ShapeModule
Shape module - controls initial spawn position and direction
- Module
- Particles
- Header
#include "Particles/ParticleModule.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
EmitterShape | shape | Default EmitterShape::Point. |
float | radius | Sphere/Hemisphere Default 1.0f. |
bool | emitFromShell | If true, emit from surface only Default false. |
float | angle | Cone Default 25.0f. |
Vec3 | boxSize | Box Default Vec3(1.0f, 1.0f, 1.0f). |
float | arcAngle | Circle/Edge Default 360.0f. |
bool | randomizeDirection | Direction Default true. |
Public functions
| Returns | Name | Description |
|---|---|---|
void | OnSpawn | |
void | OnUpdateRange | |
const char* | GetTypeName | |
Scope<ParticleModule> | Clone |
Function details
OnSpawn
C++
void OnSpawn(Particle& particle, ParticleRandom& random, const Vec3& emitterPos) overrideOnUpdateRange
C++
void OnUpdateRange(Particle* particles, size_t count, float deltaTime, const float* normalizedAges) overrideGetTypeName
C++
const char* GetTypeName() const overrideClone
C++
Scope<ParticleModule> Clone() const overrideGenerated from Particles/ParticleModule.h via particles.json · Oct 31, 2026Version 1.0.0