ParticleSystem

from panda3d.physics import ParticleSystem
class ParticleSystem

Bases: Physical

Contains and manages a particle system.

Inheritance diagram

Inheritance diagram of ParticleSystem

__init__(*args, **kwargs)
addSpawnTemplate()

C++ Interface: add_spawn_template(const ParticleSystem self, ParticleSystem ps)

/**

*/

add_spawn_template()

C++ Interface: add_spawn_template(const ParticleSystem self, ParticleSystem ps)

/**

*/

birthLitter()

C++ Interface: birth_litter(const ParticleSystem self)

/**
  • spawns a new batch of particles

*/

birth_litter()

C++ Interface: birth_litter(const ParticleSystem self)

/**
  • spawns a new batch of particles

*/

clearFloorZ()

C++ Interface: clear_floor_z(const ParticleSystem self)

/**

*/

clearSpawnTemplates()

C++ Interface: clear_spawn_templates(const ParticleSystem self)

/**

*/

clearToInitial()

C++ Interface: clear_to_initial(const ParticleSystem self)

/**
  • Resets the system to its start state by resizing to 0, then resizing back

  • to current size.

*/

clear_floor_z()

C++ Interface: clear_floor_z(const ParticleSystem self)

/**

*/

clear_spawn_templates()

C++ Interface: clear_spawn_templates(const ParticleSystem self)

/**

*/

clear_to_initial()

C++ Interface: clear_to_initial(const ParticleSystem self)

/**
  • Resets the system to its start state by resizing to 0, then resizing back

  • to current size.

*/

getActiveSystemFlag()

C++ Interface: get_active_system_flag(ParticleSystem self)

/**

*/

getBirthRate()

C++ Interface: get_birth_rate(ParticleSystem self)

/**

*/

getClassType()

C++ Interface: get_class_type()

getEmitter()

C++ Interface: get_emitter(ParticleSystem self)

/**

*/

getFactory()

C++ Interface: get_factory(ParticleSystem self)

/**

*/

getFloorZ()

C++ Interface: get_floor_z(ParticleSystem self)

/**

*/

getIWasSpawnedFlag()

C++ Interface: get_i_was_spawned_flag(ParticleSystem self)

/**

*/

getLitterSize()

C++ Interface: get_litter_size(ParticleSystem self)

/**

*/

getLitterSpread()

C++ Interface: get_litter_spread(ParticleSystem self)

/**

*/

getLivingParticles()

C++ Interface: get_living_particles(ParticleSystem self)

/**

*/

getLocalVelocityFlag()

C++ Interface: get_local_velocity_flag(ParticleSystem self)

/**

*/

getPoolSize()

C++ Interface: get_pool_size(ParticleSystem self)

/**

*/

getRenderParent()

C++ Interface: get_render_parent(ParticleSystem self)

/**

*/

getRenderer()

C++ Interface: get_renderer(ParticleSystem self)

/**

*/

getSoftBirthRate()

C++ Interface: get_soft_birth_rate(ParticleSystem self)

/**

*/

getSpawnOnDeathFlag()

C++ Interface: get_spawn_on_death_flag(ParticleSystem self)

/**

*/

getSpawnRenderNode()

C++ Interface: get_spawn_render_node(ParticleSystem self)

/**

*/

getSpawnRenderNodePath()

C++ Interface: get_spawn_render_node_path(ParticleSystem self)

/**

*/

getSystemAge()

C++ Interface: get_system_age(ParticleSystem self)

/**

*/

getSystemGrowsOlderFlag()

C++ Interface: get_system_grows_older_flag(ParticleSystem self)

/**

*/

getSystemLifespan()

C++ Interface: get_system_lifespan(ParticleSystem self)

/**

*/

getTicsSinceBirth()

C++ Interface: get_tics_since_birth(ParticleSystem self)

/**

*/

get_active_system_flag()

C++ Interface: get_active_system_flag(ParticleSystem self)

/**

*/

get_birth_rate()

C++ Interface: get_birth_rate(ParticleSystem self)

/**

*/

get_class_type()

C++ Interface: get_class_type()

get_emitter()

C++ Interface: get_emitter(ParticleSystem self)

/**

*/

get_factory()

C++ Interface: get_factory(ParticleSystem self)

/**

*/

get_floor_z()

C++ Interface: get_floor_z(ParticleSystem self)

/**

*/

get_i_was_spawned_flag()

C++ Interface: get_i_was_spawned_flag(ParticleSystem self)

/**

*/

get_litter_size()

C++ Interface: get_litter_size(ParticleSystem self)

/**

*/

get_litter_spread()

C++ Interface: get_litter_spread(ParticleSystem self)

/**

*/

get_living_particles()

C++ Interface: get_living_particles(ParticleSystem self)

/**

*/

get_local_velocity_flag()

C++ Interface: get_local_velocity_flag(ParticleSystem self)

/**

*/

get_pool_size()

C++ Interface: get_pool_size(ParticleSystem self)

/**

*/

get_render_parent()

C++ Interface: get_render_parent(ParticleSystem self)

/**

*/

get_renderer()

C++ Interface: get_renderer(ParticleSystem self)

/**

*/

get_soft_birth_rate()

C++ Interface: get_soft_birth_rate(ParticleSystem self)

/**

*/

get_spawn_on_death_flag()

C++ Interface: get_spawn_on_death_flag(ParticleSystem self)

/**

*/

get_spawn_render_node()

C++ Interface: get_spawn_render_node(ParticleSystem self)

/**

*/

get_spawn_render_node_path()

C++ Interface: get_spawn_render_node_path(ParticleSystem self)

/**

*/

get_system_age()

C++ Interface: get_system_age(ParticleSystem self)

/**

*/

get_system_grows_older_flag()

C++ Interface: get_system_grows_older_flag(ParticleSystem self)

/**

*/

get_system_lifespan()

C++ Interface: get_system_lifespan(ParticleSystem self)

/**

*/

get_tics_since_birth()

C++ Interface: get_tics_since_birth(ParticleSystem self)

/**

*/

induceLabor()

C++ Interface: induce_labor(const ParticleSystem self)

/**
  • Forces the birth of a particle litter this frame by resetting

  • _tics_since_birth

*/

induce_labor()

C++ Interface: induce_labor(const ParticleSystem self)

/**
  • Forces the birth of a particle litter this frame by resetting

  • _tics_since_birth

*/

render()

C++ Interface: render(const ParticleSystem self)

/**
  • Populates an attached GeomNode structure with the particle geometry for

  • rendering. This is a wrapper for accessability.

*/

setActiveSystemFlag()

C++ Interface: set_active_system_flag(const ParticleSystem self, bool a)

/**

*/

setBirthRate()

C++ Interface: set_birth_rate(const ParticleSystem self, float new_br)

/**

*/

setEmitter()

C++ Interface: set_emitter(const ParticleSystem self, BaseParticleEmitter e)

/**

*/

setFactory()

C++ Interface: set_factory(const ParticleSystem self, BaseParticleFactory f)

/**

*/

setFloorZ()

C++ Interface: set_floor_z(const ParticleSystem self, float z)

/**

*/

setLitterSize()

C++ Interface: set_litter_size(const ParticleSystem self, int new_ls)

/**

*/

setLitterSpread()

C++ Interface: set_litter_spread(const ParticleSystem self, int new_ls)

/**

*/

setLocalVelocityFlag()

C++ Interface: set_local_velocity_flag(const ParticleSystem self, bool lv)

/**

*/

setPoolSize()

C++ Interface: set_pool_size(const ParticleSystem self, int size)

// accessqueries

/**

*/

setRenderParent()

C++ Interface: set_render_parent(const ParticleSystem self, PandaNode node) set_render_parent(const ParticleSystem self, const NodePath node)

/**

*/

/**

*/

setRenderer()

C++ Interface: set_renderer(const ParticleSystem self, BaseParticleRenderer r)

/**

*/

setSoftBirthRate()

C++ Interface: set_soft_birth_rate(const ParticleSystem self, float new_br)

/**

*/

setSpawnOnDeathFlag()

C++ Interface: set_spawn_on_death_flag(const ParticleSystem self, bool sod)

/**

*/

setSpawnRenderNode()

C++ Interface: set_spawn_render_node(const ParticleSystem self, PandaNode node)

/**

*/

setSpawnRenderNodePath()

C++ Interface: set_spawn_render_node_path(const ParticleSystem self, const NodePath node)

/**

*/

setSystemAge()

C++ Interface: set_system_age(const ParticleSystem self, float age)

/**

*/

setSystemGrowsOlderFlag()

C++ Interface: set_system_grows_older_flag(const ParticleSystem self, bool sgo)

/**

*/

setSystemLifespan()

C++ Interface: set_system_lifespan(const ParticleSystem self, float sl)

/**

*/

setTemplateSystemFlag()

C++ Interface: set_template_system_flag(const ParticleSystem self, bool tsf)

/**

*/

set_active_system_flag()

C++ Interface: set_active_system_flag(const ParticleSystem self, bool a)

/**

*/

set_birth_rate()

C++ Interface: set_birth_rate(const ParticleSystem self, float new_br)

/**

*/

set_emitter()

C++ Interface: set_emitter(const ParticleSystem self, BaseParticleEmitter e)

/**

*/

set_factory()

C++ Interface: set_factory(const ParticleSystem self, BaseParticleFactory f)

/**

*/

set_floor_z()

C++ Interface: set_floor_z(const ParticleSystem self, float z)

/**

*/

set_litter_size()

C++ Interface: set_litter_size(const ParticleSystem self, int new_ls)

/**

*/

set_litter_spread()

C++ Interface: set_litter_spread(const ParticleSystem self, int new_ls)

/**

*/

set_local_velocity_flag()

C++ Interface: set_local_velocity_flag(const ParticleSystem self, bool lv)

/**

*/

set_pool_size()

C++ Interface: set_pool_size(const ParticleSystem self, int size)

// accessqueries

/**

*/

set_render_parent()

C++ Interface: set_render_parent(const ParticleSystem self, PandaNode node) set_render_parent(const ParticleSystem self, const NodePath node)

/**

*/

/**

*/

set_renderer()

C++ Interface: set_renderer(const ParticleSystem self, BaseParticleRenderer r)

/**

*/

set_soft_birth_rate()

C++ Interface: set_soft_birth_rate(const ParticleSystem self, float new_br)

/**

*/

set_spawn_on_death_flag()

C++ Interface: set_spawn_on_death_flag(const ParticleSystem self, bool sod)

/**

*/

set_spawn_render_node()

C++ Interface: set_spawn_render_node(const ParticleSystem self, PandaNode node)

/**

*/

set_spawn_render_node_path()

C++ Interface: set_spawn_render_node_path(const ParticleSystem self, const NodePath node)

/**

*/

set_system_age()

C++ Interface: set_system_age(const ParticleSystem self, float age)

/**

*/

set_system_grows_older_flag()

C++ Interface: set_system_grows_older_flag(const ParticleSystem self, bool sgo)

/**

*/

set_system_lifespan()

C++ Interface: set_system_lifespan(const ParticleSystem self, float sl)

/**

*/

set_template_system_flag()

C++ Interface: set_template_system_flag(const ParticleSystem self, bool tsf)

/**

*/

softStart()

C++ Interface: soft_start(const ParticleSystem self, float br, float first_birth_delay)

/**
  • 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.

*/

softStop()

C++ Interface: soft_stop(const ParticleSystem self, float br)

/**
  • Causes system to use birth rate set by set_soft_birth_rate()

*/

soft_start()

C++ Interface: soft_start(const ParticleSystem self, float br, float first_birth_delay)

/**
  • 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()

C++ Interface: soft_stop(const ParticleSystem self, float br)

/**
  • Causes system to use birth rate set by set_soft_birth_rate()

*/

update()

C++ Interface: update(const ParticleSystem self, float dt)

writeFreeParticleFifo()

C++ Interface: write_free_particle_fifo(ParticleSystem self, ostream out, int indent)

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

*/

writeSpawnTemplates()

C++ Interface: write_spawn_templates(ParticleSystem self, ostream out, int indent)

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

*/

write_free_particle_fifo()

C++ Interface: write_free_particle_fifo(ParticleSystem self, ostream out, int indent)

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

*/

write_spawn_templates()

C++ Interface: write_spawn_templates(ParticleSystem self, ostream out, int indent)

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

*/