ParticleSystem
from panda3d.physics import ParticleSystem
- class ParticleSystem
Bases:
Bases:
Physical
Contains and manages a particle system.
Inheritance diagram
- __init__(copy: ParticleSystem)
Copy Constructor.
- __init__(pool_size: int)
Default Constructor.
- add_spawn_template(ps: ParticleSystem)
- birth_litter()
spawns a new batch of particles
- clear_floor_z()
- clear_spawn_templates()
- clear_to_initial()
Resets the system to its start state by resizing to 0, then resizing back to current size.
- static get_class_type() panda3d.core.TypeHandle
- get_emitter() BaseParticleEmitter
- get_factory() BaseParticleFactory
- get_render_parent() panda3d.core.NodePath
- get_renderer() BaseParticleRenderer
- get_spawn_render_node() panda3d.core.PandaNode
- get_spawn_render_node_path() panda3d.core.NodePath
- induce_labor()
Forces the birth of a particle litter this frame by resetting _tics_since_birth
- render()
Populates an attached
GeomNode
structure with the particle geometry for rendering. This is a wrapper for accessability.
- set_emitter(e: BaseParticleEmitter)
- set_factory(f: BaseParticleFactory)
- set_render_parent(node: panda3d.core.NodePath)
- set_render_parent(node: panda3d.core.PandaNode)
- set_renderer(r: BaseParticleRenderer)
- set_spawn_render_node(node: panda3d.core.PandaNode)
- set_spawn_render_node_path(node: panda3d.core.NodePath)
- soft_start(br: float, first_birth_delay: float)
Causes system to use birth rate set by
set_birth_rate()
. If first_birth_delay is specified, it specifies the number of seconds to wait in addition to the birth rate before the first particle is birthed. It is legal for this to be a negative value, which causes the first birth to happen sooner rather than later.
- soft_stop(br: float)
Causes system to use birth rate set by
set_soft_birth_rate()
- write_free_particle_fifo(out: panda3d.core.ostream, indent: int)
Write a string representation of this instance to <out>.
- write_spawn_templates(out: panda3d.core.ostream, indent: int)
Write a string representation of this instance to <out>.