class ParticleSystem

Bases: Physical

Contains and manages a particle system.

Inheritance diagram

Inheritance diagram of ParticleSystem

__init__(copy: ParticleSystem) → None

Copy Constructor.

__init__(pool_size: int) → None

Default Constructor.

addSpawnTemplate(ps: ParticleSystem) → None
clearFloorZ() → None
clearSpawnTemplates() → None
clearToInitial() → None

Resets the system to its start state by resizing to 0, then resizing back to current size.

getActiveSystemFlag() → bool
getBirthRate() → float
static getClassType() → TypeHandle
Return type


getEmitter() → BaseParticleEmitter
Return type


getFactory() → BaseParticleFactory
Return type


getFloorZ() → float
getIWasSpawnedFlag() → bool
getLitterSize() → int
getLitterSpread() → int
getLivingParticles() → int
getLocalVelocityFlag() → bool
getPoolSize() → int
getRenderParent() → NodePath
Return type


getRenderer() → BaseParticleRenderer
Return type


getSoftBirthRate() → float
getSpawnOnDeathFlag() → bool
getSpawnRenderNode() → PandaNode
Return type


getSpawnRenderNodePath() → NodePath
Return type


getSystemAge() → float
getSystemGrowsOlderFlag() → bool
getSystemLifespan() → float
getTicsSinceBirth() → float
induceLabor() → None

Forces the birth of a particle litter this frame by resetting _tics_since_birth

render() → None

Populates an attached GeomNode structure with the particle geometry for rendering. This is a wrapper for accessability.

setActiveSystemFlag(a: bool) → None
setBirthRate(new_br: float) → None
setEmitter(e: BaseParticleEmitter) → None
setFactory(f: BaseParticleFactory) → None
setFloorZ(z: float) → None
setLitterSize(new_ls: int) → None
setLitterSpread(new_ls: int) → None
setLocalVelocityFlag(lv: bool) → None
setPoolSize(size: int) → None


setRenderParent(node: NodePath) → None
setRenderParent(node: PandaNode) → None
setRenderer(r: BaseParticleRenderer) → None
setSoftBirthRate(new_br: float) → None
setSpawnOnDeathFlag(sod: bool) → None
setSpawnRenderNode(node: PandaNode) → None
setSpawnRenderNodePath(node: NodePath) → None
setSystemAge(age: float) → None
setSystemGrowsOlderFlag(sgo: bool) → None
setSystemLifespan(sl: float) → None
setTemplateSystemFlag(tsf: bool) → None
softStart(br: float) → None

Causes system to use birth rate set by setBirthRate()

softStart(br: float, first_birth_delay: float) → None

Causes system to use birth rate set by setBirthRate(), with the system’s first birth being delayed by the value of first_birth_delay. Note that a negative delay is perfectly valid, causing the first birth to happen sooner rather than later.

softStop(br: float) → None

Causes system to use birth rate set by setSoftBirthRate()

update(dt: float) → None
writeFreeParticleFifo(out: ostream, indent: int) → None

Write a string representation of this instance to <out>.

writeSpawnTemplates(out: ostream, indent: int) → None

Write a string representation of this instance to <out>.