class
ParticleEmitterConeShape
Particle emitter shape that emits particles from a cone.
Particles can be created on cone base or volume, while controlling the radial arc of the emitted portion of the volume, as well as thickness of the cone emission volume. All particles will have random normals within the distribution of the cone.
Public
Constructors
ParticleEmitterConeShape
ParticleEmitterConeShape
Methods
~ParticleEmitterConeShape
SetSettings
Options describing the shape.
GetSettings
staticCreate
Creates a new particle emitter cone shape.
staticCreate
Creates a new particle emitter cone shape.
staticGetRttiStatic
Internal
Methods
SpawnInternal
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
Spawns a single particle randomly, generating its position and normal.
SpawnInternal
Spawns a single particle on the specified point on the cone, generating its position and normal.
Protected
Methods
CalcBounds
Calculates the bounds of the emitter shape.
- shape
- AABB for the emitter shape itself.
- velocity
- AABB for the generated normals.
GetPointInCone
Generates a position and normal of a particle based on the input 2D position on the cone circle base.