ParticleSystem¶
from acron.physics import ParticleSystem
- class ParticleSystem¶
Bases:
Bases:
PhysicalContains and manages a particle system.
Inheritance diagram
digraph inheritance847f8fe169 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "ParticleSystem" [URL="acron.physics.ParticleSystem.html#acron.physics.ParticleSystem",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "Physical" -> "ParticleSystem" [arrowsize=0.75,style=""]; "Physical" [URL="acron.physics.Physical.html#acron.physics.Physical",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedReferenceCount" -> "Physical" [arrowsize=0.75,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedReferenceCount" [URL="acron.core.TypedReferenceCount.html#acron.core.TypedReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; }- __init__()¶
Default Constructor.
Copy Constructor.
- add_spawn_template()¶
- 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.
- get_active_system_flag()¶
- get_birth_rate()¶
- static get_class_type()¶
- get_emitter()¶
- get_factory()¶
- get_floor_z()¶
- get_i_was_spawned_flag()¶
- get_litter_size()¶
- get_litter_spread()¶
- get_living_particles()¶
- get_local_velocity_flag()¶
- get_pool_size()¶
- get_render_parent()¶
- get_renderer()¶
- get_soft_birth_rate()¶
- get_spawn_on_death_flag()¶
- get_spawn_render_node()¶
- get_spawn_render_node_path()¶
- get_system_age()¶
- get_system_grows_older_flag()¶
- get_system_lifespan()¶
- get_tics_since_birth()¶
- induce_labor()¶
Forces the birth of a particle litter this frame by resetting _tics_since_birth
- render()¶
Populates an attached
GeomNodestructure with the particle geometry for rendering. This is a wrapper for accessability.
- set_active_system_flag()¶
- set_birth_rate()¶
- set_emitter()¶
- set_factory()¶
- set_floor_z()¶
- set_litter_size()¶
- set_litter_spread()¶
- set_local_velocity_flag()¶
- set_pool_size()¶
accessqueries
- set_render_parent()¶
- set_renderer()¶
- set_soft_birth_rate()¶
- set_spawn_on_death_flag()¶
- set_spawn_render_node()¶
- set_spawn_render_node_path()¶
- set_system_age()¶
- set_system_grows_older_flag()¶
- set_system_lifespan()¶
- set_template_system_flag()¶
- soft_start()¶
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()¶
Causes system to use birth rate set by
set_soft_birth_rate()
- update()¶
- write_free_particle_fifo()¶
Write a string representation of this instance to <out>.
- write_spawn_templates()¶
Write a string representation of this instance to <out>.