class ParticleEmitterHemisphereShape

Particle emitter shape that emits particles from a hemisphere.

Particles can be emitted from the hemisphere surface, the entire volume or a proportion of the volume depending on the thickness parameter. All particles will have normals pointing outwards in a spherical direction.

Public

Constructors

ParticleEmitterHemisphereShape

ParticleEmitterHemisphereShape() = default

ParticleEmitterHemisphereShape

ParticleEmitterHemisphereShape(const ParticleHemisphereShapeSettings &settings)

Methods

SetSettings

void SetSettings(const ParticleHemisphereShapeSettings &settings)

Options describing the shape.

GetSettings

const ParticleHemisphereShapeSettings &GetSettings() const

staticCreate

Creates a new particle emitter sphere shape.

staticCreate

static SPtr<ParticleEmitterHemisphereShape> Create()

Creates a new particle emitter sphere shape.

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const override

Returns an interface you can use to access class' Run Time Type Information.

Internal

Methods

SpawnInternal

u32 SpawnInternal(const Random &random, ParticleSet &particles, u32 count, const ParticleSystemState &state) const override

Spawns a new set of particles using the current shape's distribution.

random
Random number generator.
particles
Particle set in which to insert new particles.
count
Number of particles to spawn.
state
Optional state that can contain various per-frame information required for spawning the particles.

Returns: Index at which the first of the particles was inserted, with other particles following sequentially.

SpawnInternal

void SpawnInternal(const Random &random, Vector3 &position, Vector3 &normal) const

Spawns a single particle, generating its position and normal.

Protected

Methods

CalcBounds

void CalcBounds(AABox &shape, AABox &velocity) const override

Calculates the bounds of the emitter shape.

shape
AABB for the emitter shape itself.
velocity
AABB for the generated normals.

Fields

mSettings