:github_url: hide .. _class_CPUParticles2D: CPUParticles2D ============== **Eredita:** :ref:`Node2D` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` Un emettitore di particelle 2D basato su CPU. .. rst-class:: classref-introduction-group Descrizione ---------------------- Nodo di particelle 2D basato su CPU utilizzato per creare una varietà di sistemi ed effetti di particelle. Vedi anche :ref:`GPUParticles2D`, che fornisce la stessa funzionalità con accelerazione hardware, ma potrebbe non funzionare su dispositivi più vecchi. .. rst-class:: classref-introduction-group Tutorial ---------------- - :doc:`Sistema di particelle (2D) <../tutorials/2d/particle_systems_2d>` .. rst-class:: classref-reftable-group Proprietà ------------------ .. table:: :widths: auto +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`int` | :ref:`amount` | ``8`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`Curve` | :ref:`angle_curve` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`angle_max` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`angle_min` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`Curve` | :ref:`angular_velocity_curve` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`angular_velocity_max` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`angular_velocity_min` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`Curve` | :ref:`anim_offset_curve` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`anim_offset_max` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`anim_offset_min` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`Curve` | :ref:`anim_speed_curve` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`anim_speed_max` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`anim_speed_min` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`Color` | :ref:`color` | ``Color(1, 1, 1, 1)`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`Gradient` | :ref:`color_initial_ramp` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`Gradient` | :ref:`color_ramp` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`Curve` | :ref:`damping_curve` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`damping_max` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`damping_min` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`direction` | ``Vector2(1, 0)`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`DrawOrder` | :ref:`draw_order` | ``0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`PackedColorArray` | :ref:`emission_colors` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`PackedVector2Array` | :ref:`emission_normals` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`PackedVector2Array` | :ref:`emission_points` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`emission_rect_extents` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`emission_ring_inner_radius` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`emission_ring_radius` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`EmissionShape` | :ref:`emission_shape` | ``0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`emission_sphere_radius` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`emitting` | ``true`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`explosiveness` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`int` | :ref:`fixed_fps` | ``0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`fract_delta` | ``true`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`gravity` | ``Vector2(0, 980)`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`Curve` | :ref:`hue_variation_curve` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`hue_variation_max` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`hue_variation_min` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`initial_velocity_max` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`initial_velocity_min` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`lifetime` | ``1.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`lifetime_randomness` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`Curve` | :ref:`linear_accel_curve` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`linear_accel_max` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`linear_accel_min` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`local_coords` | ``false`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`one_shot` | ``false`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`Curve` | :ref:`orbit_velocity_curve` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`orbit_velocity_max` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`orbit_velocity_min` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`particle_flag_align_y` | ``false`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`PhysicsInterpolationMode` | physics_interpolation_mode | ``2`` (overrides :ref:`Node`) | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`preprocess` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`Curve` | :ref:`radial_accel_curve` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`radial_accel_max` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`radial_accel_min` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`randomness` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`Curve` | :ref:`scale_amount_curve` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`scale_amount_max` | ``1.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`scale_amount_min` | ``1.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`Curve` | :ref:`scale_curve_x` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`Curve` | :ref:`scale_curve_y` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`int` | :ref:`seed` | ``0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`speed_scale` | ``1.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`split_scale` | ``false`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`spread` | ``45.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`Curve` | :ref:`tangential_accel_curve` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`tangential_accel_max` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`float` | :ref:`tangential_accel_min` | ``0.0`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`Texture2D` | :ref:`texture` | | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`use_fixed_seed` | ``false`` | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ .. rst-class:: classref-reftable-group Metodi ------------ .. table:: :widths: auto +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`convert_from_particles`\ (\ particles\: :ref:`Node`\ ) | +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Curve` | :ref:`get_param_curve`\ (\ param\: :ref:`Parameter`\ ) |const| | +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_param_max`\ (\ param\: :ref:`Parameter`\ ) |const| | +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_param_min`\ (\ param\: :ref:`Parameter`\ ) |const| | +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_particle_flag`\ (\ particle_flag\: :ref:`ParticleFlags`\ ) |const| | +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`request_particles_process`\ (\ process_time\: :ref:`float`\ ) | +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`restart`\ (\ keep_seed\: :ref:`bool` = false\ ) | +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_param_curve`\ (\ param\: :ref:`Parameter`, curve\: :ref:`Curve`\ ) | +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_param_max`\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) | +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_param_min`\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) | +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_particle_flag`\ (\ particle_flag\: :ref:`ParticleFlags`, enable\: :ref:`bool`\ ) | +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Segnali -------------- .. _class_CPUParticles2D_signal_finished: .. rst-class:: classref-signal **finished**\ (\ ) :ref:`🔗` Emesso quando tutte le particelle attive hanno terminato l'elaborazione. Quando :ref:`one_shot` è disabilitato, le particelle saranno elaborate in modo continuo, quindi non verrà mai emesso. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Enumerazioni ------------------------ .. _enum_CPUParticles2D_DrawOrder: .. rst-class:: classref-enumeration enum **DrawOrder**: :ref:`🔗` .. _class_CPUParticles2D_constant_DRAW_ORDER_INDEX: .. rst-class:: classref-enumeration-constant :ref:`DrawOrder` **DRAW_ORDER_INDEX** = ``0`` Le particelle sono disegnate nell'ordine in cui sono emesse. .. _class_CPUParticles2D_constant_DRAW_ORDER_LIFETIME: .. rst-class:: classref-enumeration-constant :ref:`DrawOrder` **DRAW_ORDER_LIFETIME** = ``1`` Le particelle sono disegnate nell'ordine di tempo di vita residuo. In altre parole, la particella con il tempo di vita più alto è disegnata davanti. .. rst-class:: classref-item-separator ---- .. _enum_CPUParticles2D_Parameter: .. rst-class:: classref-enumeration enum **Parameter**: :ref:`🔗` .. _class_CPUParticles2D_constant_PARAM_INITIAL_LINEAR_VELOCITY: .. rst-class:: classref-enumeration-constant :ref:`Parameter` **PARAM_INITIAL_LINEAR_VELOCITY** = ``0`` Da utilizzare con :ref:`set_param_min()`, :ref:`set_param_max()`, e :ref:`set_param_curve()` per impostare le proprietà della velocità iniziale. .. _class_CPUParticles2D_constant_PARAM_ANGULAR_VELOCITY: .. rst-class:: classref-enumeration-constant :ref:`Parameter` **PARAM_ANGULAR_VELOCITY** = ``1`` Da utilizzare con :ref:`set_param_min()`, :ref:`set_param_max()`, e :ref:`set_param_curve()` per impostare le proprietà della velocità angolare. .. _class_CPUParticles2D_constant_PARAM_ORBIT_VELOCITY: .. rst-class:: classref-enumeration-constant :ref:`Parameter` **PARAM_ORBIT_VELOCITY** = ``2`` Da utilizzare con :ref:`set_param_min()`, :ref:`set_param_max()`, e :ref:`set_param_curve()` per impostare le proprietà della velocità orbitale. .. _class_CPUParticles2D_constant_PARAM_LINEAR_ACCEL: .. rst-class:: classref-enumeration-constant :ref:`Parameter` **PARAM_LINEAR_ACCEL** = ``3`` Da utilizzare con :ref:`set_param_min()`, :ref:`set_param_max()`, e :ref:`set_param_curve()` per impostare le proprietà dell'accelerazione lineare. .. _class_CPUParticles2D_constant_PARAM_RADIAL_ACCEL: .. rst-class:: classref-enumeration-constant :ref:`Parameter` **PARAM_RADIAL_ACCEL** = ``4`` Da utilizzare con :ref:`set_param_min()`, :ref:`set_param_max()`, e :ref:`set_param_curve()` per impostare le proprietà dell'accelerazione radiale. .. _class_CPUParticles2D_constant_PARAM_TANGENTIAL_ACCEL: .. rst-class:: classref-enumeration-constant :ref:`Parameter` **PARAM_TANGENTIAL_ACCEL** = ``5`` Da utilizzare con :ref:`set_param_min()`, :ref:`set_param_max()`, e :ref:`set_param_curve()` per impostare le proprietà dell'accelerazione tangenziale. .. _class_CPUParticles2D_constant_PARAM_DAMPING: .. rst-class:: classref-enumeration-constant :ref:`Parameter` **PARAM_DAMPING** = ``6`` Da utilizzare con :ref:`set_param_min()`, :ref:`set_param_max()`, e :ref:`set_param_curve()` per impostare le proprietà dello smorzamento. .. _class_CPUParticles2D_constant_PARAM_ANGLE: .. rst-class:: classref-enumeration-constant :ref:`Parameter` **PARAM_ANGLE** = ``7`` Da utilizzare con :ref:`set_param_min()`, :ref:`set_param_max()`, e :ref:`set_param_curve()` per impostare le proprietà dell'angolo. .. _class_CPUParticles2D_constant_PARAM_SCALE: .. rst-class:: classref-enumeration-constant :ref:`Parameter` **PARAM_SCALE** = ``8`` Da utilizzare con :ref:`set_param_min()`, :ref:`set_param_max()`, e :ref:`set_param_curve()` per impostare le proprietà della scala. .. _class_CPUParticles2D_constant_PARAM_HUE_VARIATION: .. rst-class:: classref-enumeration-constant :ref:`Parameter` **PARAM_HUE_VARIATION** = ``9`` Da utilizzare con :ref:`set_param_min()`, :ref:`set_param_max()`, e :ref:`set_param_curve()` per impostare le proprietà della variazione di tonalità. .. _class_CPUParticles2D_constant_PARAM_ANIM_SPEED: .. rst-class:: classref-enumeration-constant :ref:`Parameter` **PARAM_ANIM_SPEED** = ``10`` Da utilizzare con :ref:`set_param_min()`, :ref:`set_param_max()`, e :ref:`set_param_curve()` per impostare le proprietà della velocità di animazione. .. _class_CPUParticles2D_constant_PARAM_ANIM_OFFSET: .. rst-class:: classref-enumeration-constant :ref:`Parameter` **PARAM_ANIM_OFFSET** = ``11`` Da utilizzare con :ref:`set_param_min()`, :ref:`set_param_max()`, e :ref:`set_param_curve()` per impostare le proprietà dell'offset di animazione. .. _class_CPUParticles2D_constant_PARAM_MAX: .. rst-class:: classref-enumeration-constant :ref:`Parameter` **PARAM_MAX** = ``12`` Rappresenta la dimensione dell'enumerazione :ref:`Parameter`. .. rst-class:: classref-item-separator ---- .. _enum_CPUParticles2D_ParticleFlags: .. rst-class:: classref-enumeration enum **ParticleFlags**: :ref:`🔗` .. _class_CPUParticles2D_constant_PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY: .. rst-class:: classref-enumeration-constant :ref:`ParticleFlags` **PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY** = ``0`` Da utilizzare con :ref:`set_particle_flag()` per impostare :ref:`particle_flag_align_y`. .. _class_CPUParticles2D_constant_PARTICLE_FLAG_ROTATE_Y: .. rst-class:: classref-enumeration-constant :ref:`ParticleFlags` **PARTICLE_FLAG_ROTATE_Y** = ``1`` Presente per coerenza con i nodi delle particelle 3D, mai utilizzato in 2D. .. _class_CPUParticles2D_constant_PARTICLE_FLAG_DISABLE_Z: .. rst-class:: classref-enumeration-constant :ref:`ParticleFlags` **PARTICLE_FLAG_DISABLE_Z** = ``2`` Presente per coerenza con i nodi delle particelle 3D, mai utilizzato in 2D. .. _class_CPUParticles2D_constant_PARTICLE_FLAG_MAX: .. rst-class:: classref-enumeration-constant :ref:`ParticleFlags` **PARTICLE_FLAG_MAX** = ``3`` Rappresenta la dimensione dell'enumerazione :ref:`ParticleFlags`. .. rst-class:: classref-item-separator ---- .. _enum_CPUParticles2D_EmissionShape: .. rst-class:: classref-enumeration enum **EmissionShape**: :ref:`🔗` .. _class_CPUParticles2D_constant_EMISSION_SHAPE_POINT: .. rst-class:: classref-enumeration-constant :ref:`EmissionShape` **EMISSION_SHAPE_POINT** = ``0`` Tutte le particelle saranno emesse da un unico punto. .. _class_CPUParticles2D_constant_EMISSION_SHAPE_SPHERE: .. rst-class:: classref-enumeration-constant :ref:`EmissionShape` **EMISSION_SHAPE_SPHERE** = ``1`` Le particelle saranno emesse nel volume di una sfera appiattita a due dimensioni. .. _class_CPUParticles2D_constant_EMISSION_SHAPE_SPHERE_SURFACE: .. rst-class:: classref-enumeration-constant :ref:`EmissionShape` **EMISSION_SHAPE_SPHERE_SURFACE** = ``2`` Le particelle saranno emesse sulla superfice di una sfera appiattita a due dimensioni. .. _class_CPUParticles2D_constant_EMISSION_SHAPE_RECTANGLE: .. rst-class:: classref-enumeration-constant :ref:`EmissionShape` **EMISSION_SHAPE_RECTANGLE** = ``3`` Le particelle saranno emesse nell'area di un rettangolo. .. _class_CPUParticles2D_constant_EMISSION_SHAPE_POINTS: .. rst-class:: classref-enumeration-constant :ref:`EmissionShape` **EMISSION_SHAPE_POINTS** = ``4`` Le particelle saranno emesse in una posizione scelta a caso tra i punti :ref:`emission_points`. Il colore delle particelle sarà modulato per :ref:`emission_colors`. .. _class_CPUParticles2D_constant_EMISSION_SHAPE_DIRECTED_POINTS: .. rst-class:: classref-enumeration-constant :ref:`EmissionShape` **EMISSION_SHAPE_DIRECTED_POINTS** = ``5`` Le particelle saranno emesse in una posizione scelta a caso tra i punti :ref:`emission_points`. La velocità e la rotazione delle particelle saranno impostate in base a :ref:`emission_normals`. Il colore delle particelle sarà modulato per :ref:`emission_colors`. .. _class_CPUParticles2D_constant_EMISSION_SHAPE_RING: .. rst-class:: classref-enumeration-constant :ref:`EmissionShape` **EMISSION_SHAPE_RING** = ``6`` Particles will be emitted in the area of a ring parameterized by its outer and inner radius. .. _class_CPUParticles2D_constant_EMISSION_SHAPE_MAX: .. rst-class:: classref-enumeration-constant :ref:`EmissionShape` **EMISSION_SHAPE_MAX** = ``7`` Rappresenta la dimensione dell'enumerazione :ref:`EmissionShape`. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Descrizioni delle proprietà ------------------------------------------------------ .. _class_CPUParticles2D_property_amount: .. rst-class:: classref-property :ref:`int` **amount** = ``8`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_amount**\ (\ value\: :ref:`int`\ ) - :ref:`int` **get_amount**\ (\ ) Numero di particelle emesse in un singolo ciclo di emissione. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_angle_curve: .. rst-class:: classref-property :ref:`Curve` **angle_curve** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_curve**\ (\ param\: :ref:`Parameter`, curve\: :ref:`Curve`\ ) - :ref:`Curve` **get_param_curve**\ (\ param\: :ref:`Parameter`\ ) |const| La rotazione di ogni particella sarà animata lungo questa :ref:`Curve`. Dovrebbe essere una :ref:`Curve` unitaria. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_angle_max: .. rst-class:: classref-property :ref:`float` **angle_max** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_max**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_max**\ (\ param\: :ref:`Parameter`\ ) |const| Rotazione iniziale massima applicata a ciascuna particella, in gradi. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_angle_min: .. rst-class:: classref-property :ref:`float` **angle_min** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_min**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_min**\ (\ param\: :ref:`Parameter`\ ) |const| Equivalente minimo di :ref:`angle_max`. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_angular_velocity_curve: .. rst-class:: classref-property :ref:`Curve` **angular_velocity_curve** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_curve**\ (\ param\: :ref:`Parameter`, curve\: :ref:`Curve`\ ) - :ref:`Curve` **get_param_curve**\ (\ param\: :ref:`Parameter`\ ) |const| La velocità angolare di ciascuna particella varierà lungo questa :ref:`Curve`. Dovrebbe essere una :ref:`Curve` unitaria. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_angular_velocity_max: .. rst-class:: classref-property :ref:`float` **angular_velocity_max** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_max**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_max**\ (\ param\: :ref:`Parameter`\ ) |const| Velocità angolare iniziale massima (velocità di rotazione) applicata a ciascuna particella in *gradi* al secondo. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_angular_velocity_min: .. rst-class:: classref-property :ref:`float` **angular_velocity_min** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_min**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_min**\ (\ param\: :ref:`Parameter`\ ) |const| Equivalente minimo di :ref:`angular_velocity_max`. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_anim_offset_curve: .. rst-class:: classref-property :ref:`Curve` **anim_offset_curve** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_curve**\ (\ param\: :ref:`Parameter`, curve\: :ref:`Curve`\ ) - :ref:`Curve` **get_param_curve**\ (\ param\: :ref:`Parameter`\ ) |const| L'offset dell'animazione di ogni particella varierà lungo questa :ref:`Curve`. Dovrebbe essere una :ref:`Curve` unitaria. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_anim_offset_max: .. rst-class:: classref-property :ref:`float` **anim_offset_max** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_max**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_max**\ (\ param\: :ref:`Parameter`\ ) |const| Offset massimo dell'animazione che corrisponde all'indice del fotogramma nella texture. ``0`` è il primo fotogramma, ``1`` è l'ultimo. Vedi :ref:`CanvasItemMaterial.particles_animation`. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_anim_offset_min: .. rst-class:: classref-property :ref:`float` **anim_offset_min** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_min**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_min**\ (\ param\: :ref:`Parameter`\ ) |const| Equivalente minimo di :ref:`anim_offset_max`. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_anim_speed_curve: .. rst-class:: classref-property :ref:`Curve` **anim_speed_curve** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_curve**\ (\ param\: :ref:`Parameter`, curve\: :ref:`Curve`\ ) - :ref:`Curve` **get_param_curve**\ (\ param\: :ref:`Parameter`\ ) |const| La velocità dell'animazione di ogni particella varierà lungo questa :ref:`Curve`. Dovrebbe essere una :ref:`Curve` unitaria. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_anim_speed_max: .. rst-class:: classref-property :ref:`float` **anim_speed_max** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_max**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_max**\ (\ param\: :ref:`Parameter`\ ) |const| Velocità massima d'animazione delle particelle. Una velocità d'animazione di ``1`` significa che le particelle faranno un ciclo di offset completo da ``0`` a ``1`` durante la loro durata, ``2`` significa ``2`` cicli ecc. Con una velocità di animazione maggiore di ``1``, ricorda di abilitare la proprietà :ref:`CanvasItemMaterial.particles_anim_loop` se vuoi che l'animazione si ripeta. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_anim_speed_min: .. rst-class:: classref-property :ref:`float` **anim_speed_min** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_min**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_min**\ (\ param\: :ref:`Parameter`\ ) |const| Equivalente minimo di :ref:`anim_speed_max`. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_color: .. rst-class:: classref-property :ref:`Color` **color** = ``Color(1, 1, 1, 1)`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_color**\ (\ value\: :ref:`Color`\ ) - :ref:`Color` **get_color**\ (\ ) Colore iniziale di ciascuna particella. Se :ref:`texture` è definito, sarà moltiplicato per questo colore. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_color_initial_ramp: .. rst-class:: classref-property :ref:`Gradient` **color_initial_ramp** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_color_initial_ramp**\ (\ value\: :ref:`Gradient`\ ) - :ref:`Gradient` **get_color_initial_ramp**\ (\ ) Il colore di ciascuna particella varierà lungo questo :ref:`Gradient` (moltiplicato per :ref:`color`). .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_color_ramp: .. rst-class:: classref-property :ref:`Gradient` **color_ramp** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_color_ramp**\ (\ value\: :ref:`Gradient`\ ) - :ref:`Gradient` **get_color_ramp**\ (\ ) Il colore di ciascuna particella varierà lungo questo :ref:`Gradient` nel corso della sua durata (moltiplicato per :ref:`color`). .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_damping_curve: .. rst-class:: classref-property :ref:`Curve` **damping_curve** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_curve**\ (\ param\: :ref:`Parameter`, curve\: :ref:`Curve`\ ) - :ref:`Curve` **get_param_curve**\ (\ param\: :ref:`Parameter`\ ) |const| Lo smorzamento varierà lungo questa :ref:`Curve`. Dovrebbe essere una :ref:`Curve` unitaria. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_damping_max: .. rst-class:: classref-property :ref:`float` **damping_max** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_max**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_max**\ (\ param\: :ref:`Parameter`\ ) |const| La frequenza massima a cui le particelle perdono velocità. Ad esempio, il valore di ``100`` significa che la particella passerà da una velocità di ``100`` a una velocità di ``0`` in ``1`` secondo. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_damping_min: .. rst-class:: classref-property :ref:`float` **damping_min** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_min**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_min**\ (\ param\: :ref:`Parameter`\ ) |const| Equivalente minimo di :ref:`damping_max`. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_direction: .. rst-class:: classref-property :ref:`Vector2` **direction** = ``Vector2(1, 0)`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_direction**\ (\ value\: :ref:`Vector2`\ ) - :ref:`Vector2` **get_direction**\ (\ ) Vettore unitario che specifica la direzione di emissione delle particelle. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_draw_order: .. rst-class:: classref-property :ref:`DrawOrder` **draw_order** = ``0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_draw_order**\ (\ value\: :ref:`DrawOrder`\ ) - :ref:`DrawOrder` **get_draw_order**\ (\ ) Ordine di disegno delle particelle. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_emission_colors: .. rst-class:: classref-property :ref:`PackedColorArray` **emission_colors** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_emission_colors**\ (\ value\: :ref:`PackedColorArray`\ ) - :ref:`PackedColorArray` **get_emission_colors**\ (\ ) Imposta i :ref:`Color` con cui modulare le particelle quando si utilizza :ref:`EMISSION_SHAPE_POINTS` o :ref:`EMISSION_SHAPE_DIRECTED_POINTS`. **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedColorArray` for more details. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_emission_normals: .. rst-class:: classref-property :ref:`PackedVector2Array` **emission_normals** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_emission_normals**\ (\ value\: :ref:`PackedVector2Array`\ ) - :ref:`PackedVector2Array` **get_emission_normals**\ (\ ) Imposta la direzione in cui saranno emesse le particelle quando si utilizza :ref:`EMISSION_SHAPE_DIRECTED_POINTS`. **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedVector2Array` for more details. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_emission_points: .. rst-class:: classref-property :ref:`PackedVector2Array` **emission_points** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_emission_points**\ (\ value\: :ref:`PackedVector2Array`\ ) - :ref:`PackedVector2Array` **get_emission_points**\ (\ ) Imposta le posizioni iniziali per generare le particelle quando si utilizza :ref:`EMISSION_SHAPE_POINTS` o :ref:`EMISSION_SHAPE_DIRECTED_POINTS`. **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedVector2Array` for more details. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_emission_rect_extents: .. rst-class:: classref-property :ref:`Vector2` **emission_rect_extents** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_emission_rect_extents**\ (\ value\: :ref:`Vector2`\ ) - :ref:`Vector2` **get_emission_rect_extents**\ (\ ) Le estensioni del rettangolo se :ref:`emission_shape` è impostato su :ref:`EMISSION_SHAPE_RECTANGLE`. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_emission_ring_inner_radius: .. rst-class:: classref-property :ref:`float` **emission_ring_inner_radius** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_emission_ring_inner_radius**\ (\ value\: :ref:`float`\ ) - :ref:`float` **get_emission_ring_inner_radius**\ (\ ) The ring's inner radius if :ref:`emission_shape` is set to :ref:`EMISSION_SHAPE_RING`. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_emission_ring_radius: .. rst-class:: classref-property :ref:`float` **emission_ring_radius** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_emission_ring_radius**\ (\ value\: :ref:`float`\ ) - :ref:`float` **get_emission_ring_radius**\ (\ ) The ring's outer radius if :ref:`emission_shape` is set to :ref:`EMISSION_SHAPE_RING`. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_emission_shape: .. rst-class:: classref-property :ref:`EmissionShape` **emission_shape** = ``0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_emission_shape**\ (\ value\: :ref:`EmissionShape`\ ) - :ref:`EmissionShape` **get_emission_shape**\ (\ ) Le particelle saranno emesse dentro questa regione. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_emission_sphere_radius: .. rst-class:: classref-property :ref:`float` **emission_sphere_radius** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_emission_sphere_radius**\ (\ value\: :ref:`float`\ ) - :ref:`float` **get_emission_sphere_radius**\ (\ ) Il raggio della sfera se :ref:`emission_shape` è impostato su :ref:`EMISSION_SHAPE_SPHERE`. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_emitting: .. rst-class:: classref-property :ref:`bool` **emitting** = ``true`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_emitting**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_emitting**\ (\ ) Se ``true``, le particelle sono emesse. :ref:`emitting` può essere utilizzato per avviare e interrompere l'emissione di particelle. Tuttavia, se :ref:`one_shot` è ``true``, l'impostazione di :ref:`emitting` su ``true`` non riavvierà il ciclo di emissione finché tutte le particelle attive non avranno completato l'elaborazione. Puoi utilizzare il segnale :ref:`finished` per essere avvisato una volta che tutte le particelle attive avranno completato l'elaborazione. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_explosiveness: .. rst-class:: classref-property :ref:`float` **explosiveness** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_explosiveness_ratio**\ (\ value\: :ref:`float`\ ) - :ref:`float` **get_explosiveness_ratio**\ (\ ) Quanto rapidamente sono emesse le particelle in un ciclo di emissione. Se maggiore di ``0``, ci sarà un distacco nelle emissioni prima che inizi il ciclo successivo. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_fixed_fps: .. rst-class:: classref-property :ref:`int` **fixed_fps** = ``0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_fixed_fps**\ (\ value\: :ref:`int`\ ) - :ref:`int` **get_fixed_fps**\ (\ ) La frequenza dei fotogrammi del sistema di particelle è fissato a un valore. Ad esempio, cambiando il valore a 2, le particelle saranno renderizzate a 2 fotogrammi al secondo. Nota che questo non rallenta la simulazione del sistema di particelle stesso. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_fract_delta: .. rst-class:: classref-property :ref:`bool` **fract_delta** = ``true`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_fractional_delta**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **get_fractional_delta**\ (\ ) Se ``true``, utilizza un calcolo di delta frazionario che consente una visualizzazione più fluida delle particelle. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_gravity: .. rst-class:: classref-property :ref:`Vector2` **gravity** = ``Vector2(0, 980)`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_gravity**\ (\ value\: :ref:`Vector2`\ ) - :ref:`Vector2` **get_gravity**\ (\ ) Gravità applicata a ogni particella. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_hue_variation_curve: .. rst-class:: classref-property :ref:`Curve` **hue_variation_curve** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_curve**\ (\ param\: :ref:`Parameter`, curve\: :ref:`Curve`\ ) - :ref:`Curve` **get_param_curve**\ (\ param\: :ref:`Parameter`\ ) |const| La tonalità di ogni particella varierà lungo questa :ref:`Curve`. Dovrebbe essere una :ref:`Curve` unitaria. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_hue_variation_max: .. rst-class:: classref-property :ref:`float` **hue_variation_max** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_max**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_max**\ (\ param\: :ref:`Parameter`\ ) |const| Massima variazione iniziale della tonalità applicata a ogni particella. Ciò sposterà la tonalità del colore della particella. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_hue_variation_min: .. rst-class:: classref-property :ref:`float` **hue_variation_min** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_min**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_min**\ (\ param\: :ref:`Parameter`\ ) |const| Equivalente minimo di :ref:`hue_variation_max`. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_initial_velocity_max: .. rst-class:: classref-property :ref:`float` **initial_velocity_max** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_max**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_max**\ (\ param\: :ref:`Parameter`\ ) |const| Massima ampiezza della velocità iniziale per ogni particella. La direzione deriva da :ref:`direction` e :ref:`spread`. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_initial_velocity_min: .. rst-class:: classref-property :ref:`float` **initial_velocity_min** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_min**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_min**\ (\ param\: :ref:`Parameter`\ ) |const| Equivalente minimo di :ref:`initial_velocity_max`. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_lifetime: .. rst-class:: classref-property :ref:`float` **lifetime** = ``1.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_lifetime**\ (\ value\: :ref:`float`\ ) - :ref:`float` **get_lifetime**\ (\ ) Quantità di tempo in cui ogni particella esisterà. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_lifetime_randomness: .. rst-class:: classref-property :ref:`float` **lifetime_randomness** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_lifetime_randomness**\ (\ value\: :ref:`float`\ ) - :ref:`float` **get_lifetime_randomness**\ (\ ) Rapporto di casualità della durata di vita delle particelle. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_linear_accel_curve: .. rst-class:: classref-property :ref:`Curve` **linear_accel_curve** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_curve**\ (\ param\: :ref:`Parameter`, curve\: :ref:`Curve`\ ) - :ref:`Curve` **get_param_curve**\ (\ param\: :ref:`Parameter`\ ) |const| L'accelerazione lineare di ogni particella varierà lungo questa :ref:`Curve`. Dovrebbe essere una :ref:`Curve` unitaria. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_linear_accel_max: .. rst-class:: classref-property :ref:`float` **linear_accel_max** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_max**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_max**\ (\ param\: :ref:`Parameter`\ ) |const| Accelerazione lineare massima applicata a ciascuna particella nella direzione del movimento. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_linear_accel_min: .. rst-class:: classref-property :ref:`float` **linear_accel_min** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_min**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_min**\ (\ param\: :ref:`Parameter`\ ) |const| Equivalente minimo di :ref:`linear_accel_max`. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_local_coords: .. rst-class:: classref-property :ref:`bool` **local_coords** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_use_local_coordinates**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **get_use_local_coordinates**\ (\ ) Se ``true``, le particelle usano lo spazio di coordinate del nodo genitore (noto come coordinate locali). Ciò farà sì che le particelle si muovano e ruotino lungo il nodo **CPUParticles2D** (e i suoi genitori) quando viene spostato o ruotato. Se ``false``, le particelle usano coordinate globali; non si muoveranno o ruoteranno lungo il nodo **CPUParticles2D** (e i suoi genitori) quando viene spostato o ruotato. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_one_shot: .. rst-class:: classref-property :ref:`bool` **one_shot** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_one_shot**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **get_one_shot**\ (\ ) Se ``true``, un solo ciclo di emissione sarà prodotto. Se impostato su ``true`` durante un ciclo, l'emissione si interromperà alla fine del ciclo. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_orbit_velocity_curve: .. rst-class:: classref-property :ref:`Curve` **orbit_velocity_curve** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_curve**\ (\ param\: :ref:`Parameter`, curve\: :ref:`Curve`\ ) - :ref:`Curve` **get_param_curve**\ (\ param\: :ref:`Parameter`\ ) |const| La velocità orbitale di ciascuna particella varierà lungo questa :ref:`Curve`. Dovrebbe essere una :ref:`Curve` unitaria. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_orbit_velocity_max: .. rst-class:: classref-property :ref:`float` **orbit_velocity_max** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_max**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_max**\ (\ param\: :ref:`Parameter`\ ) |const| Velocità orbitale massima applicata a ciascuna particella. Fa in modo che le particelle girino attorno all'origine. Specificata in numero di rotazioni complete attorno all'origine al secondo. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_orbit_velocity_min: .. rst-class:: classref-property :ref:`float` **orbit_velocity_min** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_min**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_min**\ (\ param\: :ref:`Parameter`\ ) |const| Equivalente minimo di :ref:`orbit_velocity_max`. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_particle_flag_align_y: .. rst-class:: classref-property :ref:`bool` **particle_flag_align_y** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_particle_flag**\ (\ particle_flag\: :ref:`ParticleFlags`, enable\: :ref:`bool`\ ) - :ref:`bool` **get_particle_flag**\ (\ particle_flag\: :ref:`ParticleFlags`\ ) |const| Allinea l'asse Y della particella con la direzione della sua velocità. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_preprocess: .. rst-class:: classref-property :ref:`float` **preprocess** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_pre_process_time**\ (\ value\: :ref:`float`\ ) - :ref:`float` **get_pre_process_time**\ (\ ) Il sistema di particelle si avvia come se avesse già cominciato questo numero di secondi fa. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_radial_accel_curve: .. rst-class:: classref-property :ref:`Curve` **radial_accel_curve** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_curve**\ (\ param\: :ref:`Parameter`, curve\: :ref:`Curve`\ ) - :ref:`Curve` **get_param_curve**\ (\ param\: :ref:`Parameter`\ ) |const| L'accelerazione radiale di ogni particella varierà lungo questa :ref:`Curve`. Dovrebbe essere una :ref:`Curve` unitaria. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_radial_accel_max: .. rst-class:: classref-property :ref:`float` **radial_accel_max** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_max**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_max**\ (\ param\: :ref:`Parameter`\ ) |const| Accelerazione radiale massima applicata a ciascuna particella. Fa accelerare la particella, allontanandola dall'origine o avvicinandola se il valore è negativo. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_radial_accel_min: .. rst-class:: classref-property :ref:`float` **radial_accel_min** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_min**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_min**\ (\ param\: :ref:`Parameter`\ ) |const| Equivalente minimo di :ref:`radial_accel_max`. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_randomness: .. rst-class:: classref-property :ref:`float` **randomness** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_randomness_ratio**\ (\ value\: :ref:`float`\ ) - :ref:`float` **get_randomness_ratio**\ (\ ) Rapporto di casualità del tempo di vita dell'emissione. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_scale_amount_curve: .. rst-class:: classref-property :ref:`Curve` **scale_amount_curve** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_curve**\ (\ param\: :ref:`Parameter`, curve\: :ref:`Curve`\ ) - :ref:`Curve` **get_param_curve**\ (\ param\: :ref:`Parameter`\ ) |const| La scala di ciascuna particella varierà lungo questa :ref:`Curve`. Dovrebbe essere una :ref:`Curve` unitaria. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_scale_amount_max: .. rst-class:: classref-property :ref:`float` **scale_amount_max** = ``1.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_max**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_max**\ (\ param\: :ref:`Parameter`\ ) |const| Scala iniziale massima applicata a ciascuna particella. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_scale_amount_min: .. rst-class:: classref-property :ref:`float` **scale_amount_min** = ``1.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_min**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_min**\ (\ param\: :ref:`Parameter`\ ) |const| Equivalente minimo di :ref:`scale_amount_max`. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_scale_curve_x: .. rst-class:: classref-property :ref:`Curve` **scale_curve_x** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_scale_curve_x**\ (\ value\: :ref:`Curve`\ ) - :ref:`Curve` **get_scale_curve_x**\ (\ ) La scala orizzontale di ciascuna particella varierà lungo questa :ref:`Curve`. Dovrebbe essere una :ref:`Curve` unitaria. \ :ref:`split_scale` deve essere abilitato. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_scale_curve_y: .. rst-class:: classref-property :ref:`Curve` **scale_curve_y** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_scale_curve_y**\ (\ value\: :ref:`Curve`\ ) - :ref:`Curve` **get_scale_curve_y**\ (\ ) La scala verticale di ciascuna particella varierà lungo questa :ref:`Curve`. Dovrebbe essere una :ref:`Curve` unitaria. \ :ref:`split_scale` deve essere abilitato. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_seed: .. rst-class:: classref-property :ref:`int` **seed** = ``0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_seed**\ (\ value\: :ref:`int`\ ) - :ref:`int` **get_seed**\ (\ ) Imposta il seed casuale utilizzato dal sistema di particelle. Efficace solo se :ref:`use_fixed_seed` è ``true``. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_speed_scale: .. rst-class:: classref-property :ref:`float` **speed_scale** = ``1.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_speed_scale**\ (\ value\: :ref:`float`\ ) - :ref:`float` **get_speed_scale**\ (\ ) Rapporto della velocità di esecuzione del sistema di particelle. Un valore di ``0`` può essere utilizzato per mettere in pausa le particelle. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_split_scale: .. rst-class:: classref-property :ref:`bool` **split_scale** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_split_scale**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **get_split_scale**\ (\ ) Se ``true``, la curva della scala sarà divisa in componenti x e y. Vedi :ref:`scale_curve_x` e :ref:`scale_curve_y`. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_spread: .. rst-class:: classref-property :ref:`float` **spread** = ``45.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_spread**\ (\ value\: :ref:`float`\ ) - :ref:`float` **get_spread**\ (\ ) La direzione iniziale di ciascuna particella varia da ``+spread`` a ``-spread`` (in gradi). .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_tangential_accel_curve: .. rst-class:: classref-property :ref:`Curve` **tangential_accel_curve** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_curve**\ (\ param\: :ref:`Parameter`, curve\: :ref:`Curve`\ ) - :ref:`Curve` **get_param_curve**\ (\ param\: :ref:`Parameter`\ ) |const| L'accelerazione tangenziale di ogni particella varierà lungo questa :ref:`Curve`. Dovrebbe essere una :ref:`Curve` unitaria. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_tangential_accel_max: .. rst-class:: classref-property :ref:`float` **tangential_accel_max** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_max**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_max**\ (\ param\: :ref:`Parameter`\ ) |const| Accelerazione tangenziale massima applicata a ciascuna particella. L'accelerazione tangenziale è perpendicolare alla velocità della particella, dandogli un movimento vorticoso. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_tangential_accel_min: .. rst-class:: classref-property :ref:`float` **tangential_accel_min** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_param_min**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) - :ref:`float` **get_param_min**\ (\ param\: :ref:`Parameter`\ ) |const| Equivalente minimo di :ref:`tangential_accel_max`. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_texture: .. rst-class:: classref-property :ref:`Texture2D` **texture** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_texture**\ (\ value\: :ref:`Texture2D`\ ) - :ref:`Texture2D` **get_texture**\ (\ ) Texture delle particelle. Se ``null``, le particelle saranno quadrati. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_property_use_fixed_seed: .. rst-class:: classref-property :ref:`bool` **use_fixed_seed** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_use_fixed_seed**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **get_use_fixed_seed**\ (\ ) Se ``true``, le particelle utilizzeranno lo stesso seed per ogni simulazione, utilizzando il seed definito in :ref:`seed`. Ciò è utile per le situazioni in cui il risultato visivo deve essere coerente tra i replay, ad esempio quando si utilizza la modalità Movie Maker. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Descrizioni dei metodi -------------------------------------------- .. _class_CPUParticles2D_method_convert_from_particles: .. rst-class:: classref-method |void| **convert_from_particles**\ (\ particles\: :ref:`Node`\ ) :ref:`🔗` Imposta le proprietà di questo nodo in modo che corrispondano a un dato nodo :ref:`GPUParticles2D` con un :ref:`ParticleProcessMaterial` assegnato. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_method_get_param_curve: .. rst-class:: classref-method :ref:`Curve` **get_param_curve**\ (\ param\: :ref:`Parameter`\ ) |const| :ref:`🔗` Restituisce la risorsa :ref:`Curve` del parametro specificato da :ref:`Parameter`. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_method_get_param_max: .. rst-class:: classref-method :ref:`float` **get_param_max**\ (\ param\: :ref:`Parameter`\ ) |const| :ref:`🔗` Restituisce il valore massimo dell'intervallo per il parametro specificato. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_method_get_param_min: .. rst-class:: classref-method :ref:`float` **get_param_min**\ (\ param\: :ref:`Parameter`\ ) |const| :ref:`🔗` Restituisce il valore minimo dell'intervallo per il parametro specificato. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_method_get_particle_flag: .. rst-class:: classref-method :ref:`bool` **get_particle_flag**\ (\ particle_flag\: :ref:`ParticleFlags`\ ) |const| :ref:`🔗` Restituisce lo stato abilitato del flag di particella specificato. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_method_request_particles_process: .. rst-class:: classref-method |void| **request_particles_process**\ (\ process_time\: :ref:`float`\ ) :ref:`🔗` Richiede alle particelle di elaborare un tempo di elaborazione aggiuntivo durante un singolo frame. Utile per la riproduzione delle particelle, se utilizzato in combinazione con :ref:`use_fixed_seed` o chiamando :ref:`restart()` con il parametro ``keep_seed`` impostato su ``true``. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_method_restart: .. rst-class:: classref-method |void| **restart**\ (\ keep_seed\: :ref:`bool` = false\ ) :ref:`🔗` Riavvia l'emettitore di particelle. Se ``keep_seed`` è ``true``, il seed casuale attuale verrà conservato. Utile per la ricerca e la riproduzione. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_method_set_param_curve: .. rst-class:: classref-method |void| **set_param_curve**\ (\ param\: :ref:`Parameter`, curve\: :ref:`Curve`\ ) :ref:`🔗` Imposta la risorsa :ref:`Curve` del parametro specificato da :ref:`Parameter`. Dovrebbe essere una :ref:`Curve` unitaria. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_method_set_param_max: .. rst-class:: classref-method |void| **set_param_max**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) :ref:`🔗` Imposta il valore massimo per il parametro specificato. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_method_set_param_min: .. rst-class:: classref-method |void| **set_param_min**\ (\ param\: :ref:`Parameter`, value\: :ref:`float`\ ) :ref:`🔗` Imposta il valore minimo per il parametro specificato. .. rst-class:: classref-item-separator ---- .. _class_CPUParticles2D_method_set_particle_flag: .. rst-class:: classref-method |void| **set_particle_flag**\ (\ particle_flag\: :ref:`ParticleFlags`, enable\: :ref:`bool`\ ) :ref:`🔗` Abilita o disabilita il flag specificato. .. |virtual| replace:: :abbr:`virtual (Questo metodo dovrebbe solitamente essere sovrascritto dall'utente per aver un effetto.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |const| replace:: :abbr:`const (Questo metodo non ha effetti collaterali. Non modifica alcuna variabile appartenente all'istanza.)` .. |vararg| replace:: :abbr:`vararg (Questo metodo accetta qualsiasi numero di argomenti oltre a quelli descritti qui.)` .. |constructor| replace:: :abbr:`constructor (Questo metodo è utilizzato per creare un tipo.)` .. |static| replace:: :abbr:`static (Questo metodo non necessita di alcun'istanza per essere chiamato, quindi può essere chiamato direttamente usando il nome della classe.)` .. |operator| replace:: :abbr:`operator (Questo metodo descrive un operatore valido da usare con questo tipo come operando di sinistra.)` .. |bitfield| replace:: :abbr:`BitField (Questo valore è un intero composto da una maschera di bit dei seguenti flag.)` .. |void| replace:: :abbr:`void (Nessun valore restituito.)`