BBMOD_ParticleSystem

A constructor defined in BBMOD_ParticleSystem.gml

Implements BBMOD_IDestructible

new BBMOD_ParticleSystem(_model, _material, _particleCount[, _batchSize])

Description

A collection of particle modules that together define behavior of particles.

Arguments

Name Type Description
_model Struct.BBMOD_Model The particle model.
_material Struct.BBMOD_Material The material used by the particle system.
_particleCount Real Maximum number of particles alive in the system.
_batchSize Real Number of particles rendered in a single draw call. Default value is 32.

Properties

Name Description
Duration How long in seconds is the system emitting particles for. Default value is 5s.
Loop If true then the emission cycle repeats after the duration. Default value is false.
Material _material The material used by the particle system.
Modules An array of modules affecting individual particles in this system.
ParticleCount Maximum number of particles alive in the system.
Sort Use true to sort particles back to front. This should be enabled if you would like to use alpha blending. Default value is false.

Methods

Name Description
add_modules Adds modules to the particle system.
destroy Frees memory used by the struct.

See also

BBMOD_MATERIAL_PARTICLE_LIT, BBMOD_MATERIAL_PARTICLE_UNLIT, BBMOD_MODEL_PARTICLE, BBMOD_ParticleEmitter, BBMOD_ParticleModule

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on April 18, 2024 using GMDoc.