ParticleSystem

from panda3d.physics import ParticleSystem
class ParticleSystem

Bases: Physical

Contains and manages a particle system.

Inheritance diagram

Inheritance diagram of ParticleSystem

__init__(copy: ParticleSystem)

Copy Constructor.

__init__(pool_size: int)

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()panda3d.core.TypeHandle
getEmitter()BaseParticleEmitter
getFactory()BaseParticleFactory
getFloorZ()float
getIWasSpawnedFlag()bool
getLitterSize()int
getLitterSpread()int
getLivingParticles()int
getLocalVelocityFlag()bool
getPoolSize()int
getRenderParent()panda3d.core.NodePath
getRenderer()BaseParticleRenderer
getSoftBirthRate()float
getSpawnOnDeathFlag()bool
getSpawnRenderNode()panda3d.core.PandaNode
getSpawnRenderNodePath()panda3d.core.NodePath
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

accessqueries

setRenderParent(node: panda3d.core.NodePath)None
setRenderParent(node: panda3d.core.PandaNode)None
setRenderer(r: BaseParticleRenderer)None
setSoftBirthRate(new_br: float)None
setSpawnOnDeathFlag(sod: bool)None
setSpawnRenderNode(node: panda3d.core.PandaNode)None
setSpawnRenderNodePath(node: panda3d.core.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: panda3d.core.ostream, indent: int)None

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

writeSpawnTemplates(out: panda3d.core.ostream, indent: int)None

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