class_cpuparticles3d.rst 95 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/CPUParticles3D.xml.
  6. .. _class_CPUParticles3D:
  7. CPUParticles3D
  8. ==============
  9. **Inherits:** :ref:`GeometryInstance3D<class_GeometryInstance3D>` **<** :ref:`VisualInstance3D<class_VisualInstance3D>` **<** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. A CPU-based 3D particle emitter.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. CPU-based 3D particle node used to create a variety of particle systems and effects.
  15. See also :ref:`GPUParticles3D<class_GPUParticles3D>`, which provides the same functionality with hardware acceleration, but may not run on older devices.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - :doc:`Particle systems (3D) <../tutorials/3d/particles/index>`
  20. .. rst-class:: classref-reftable-group
  21. Properties
  22. ----------
  23. .. table::
  24. :widths: auto
  25. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  26. | :ref:`int<class_int>` | :ref:`amount<class_CPUParticles3D_property_amount>` | ``8`` |
  27. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  28. | :ref:`Curve<class_Curve>` | :ref:`angle_curve<class_CPUParticles3D_property_angle_curve>` | |
  29. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  30. | :ref:`float<class_float>` | :ref:`angle_max<class_CPUParticles3D_property_angle_max>` | ``0.0`` |
  31. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  32. | :ref:`float<class_float>` | :ref:`angle_min<class_CPUParticles3D_property_angle_min>` | ``0.0`` |
  33. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  34. | :ref:`Curve<class_Curve>` | :ref:`angular_velocity_curve<class_CPUParticles3D_property_angular_velocity_curve>` | |
  35. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  36. | :ref:`float<class_float>` | :ref:`angular_velocity_max<class_CPUParticles3D_property_angular_velocity_max>` | ``0.0`` |
  37. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  38. | :ref:`float<class_float>` | :ref:`angular_velocity_min<class_CPUParticles3D_property_angular_velocity_min>` | ``0.0`` |
  39. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  40. | :ref:`Curve<class_Curve>` | :ref:`anim_offset_curve<class_CPUParticles3D_property_anim_offset_curve>` | |
  41. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  42. | :ref:`float<class_float>` | :ref:`anim_offset_max<class_CPUParticles3D_property_anim_offset_max>` | ``0.0`` |
  43. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  44. | :ref:`float<class_float>` | :ref:`anim_offset_min<class_CPUParticles3D_property_anim_offset_min>` | ``0.0`` |
  45. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  46. | :ref:`Curve<class_Curve>` | :ref:`anim_speed_curve<class_CPUParticles3D_property_anim_speed_curve>` | |
  47. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  48. | :ref:`float<class_float>` | :ref:`anim_speed_max<class_CPUParticles3D_property_anim_speed_max>` | ``0.0`` |
  49. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  50. | :ref:`float<class_float>` | :ref:`anim_speed_min<class_CPUParticles3D_property_anim_speed_min>` | ``0.0`` |
  51. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  52. | :ref:`Color<class_Color>` | :ref:`color<class_CPUParticles3D_property_color>` | ``Color(1, 1, 1, 1)`` |
  53. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  54. | :ref:`Gradient<class_Gradient>` | :ref:`color_initial_ramp<class_CPUParticles3D_property_color_initial_ramp>` | |
  55. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  56. | :ref:`Gradient<class_Gradient>` | :ref:`color_ramp<class_CPUParticles3D_property_color_ramp>` | |
  57. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  58. | :ref:`Curve<class_Curve>` | :ref:`damping_curve<class_CPUParticles3D_property_damping_curve>` | |
  59. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  60. | :ref:`float<class_float>` | :ref:`damping_max<class_CPUParticles3D_property_damping_max>` | ``0.0`` |
  61. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  62. | :ref:`float<class_float>` | :ref:`damping_min<class_CPUParticles3D_property_damping_min>` | ``0.0`` |
  63. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  64. | :ref:`Vector3<class_Vector3>` | :ref:`direction<class_CPUParticles3D_property_direction>` | ``Vector3(1, 0, 0)`` |
  65. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  66. | :ref:`DrawOrder<enum_CPUParticles3D_DrawOrder>` | :ref:`draw_order<class_CPUParticles3D_property_draw_order>` | ``0`` |
  67. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  68. | :ref:`Vector3<class_Vector3>` | :ref:`emission_box_extents<class_CPUParticles3D_property_emission_box_extents>` | |
  69. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  70. | :ref:`PackedColorArray<class_PackedColorArray>` | :ref:`emission_colors<class_CPUParticles3D_property_emission_colors>` | ``PackedColorArray()`` |
  71. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  72. | :ref:`PackedVector3Array<class_PackedVector3Array>` | :ref:`emission_normals<class_CPUParticles3D_property_emission_normals>` | |
  73. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  74. | :ref:`PackedVector3Array<class_PackedVector3Array>` | :ref:`emission_points<class_CPUParticles3D_property_emission_points>` | |
  75. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  76. | :ref:`Vector3<class_Vector3>` | :ref:`emission_ring_axis<class_CPUParticles3D_property_emission_ring_axis>` | |
  77. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  78. | :ref:`float<class_float>` | :ref:`emission_ring_cone_angle<class_CPUParticles3D_property_emission_ring_cone_angle>` | |
  79. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  80. | :ref:`float<class_float>` | :ref:`emission_ring_height<class_CPUParticles3D_property_emission_ring_height>` | |
  81. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  82. | :ref:`float<class_float>` | :ref:`emission_ring_inner_radius<class_CPUParticles3D_property_emission_ring_inner_radius>` | |
  83. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  84. | :ref:`float<class_float>` | :ref:`emission_ring_radius<class_CPUParticles3D_property_emission_ring_radius>` | |
  85. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  86. | :ref:`EmissionShape<enum_CPUParticles3D_EmissionShape>` | :ref:`emission_shape<class_CPUParticles3D_property_emission_shape>` | ``0`` |
  87. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  88. | :ref:`float<class_float>` | :ref:`emission_sphere_radius<class_CPUParticles3D_property_emission_sphere_radius>` | |
  89. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  90. | :ref:`bool<class_bool>` | :ref:`emitting<class_CPUParticles3D_property_emitting>` | ``true`` |
  91. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  92. | :ref:`float<class_float>` | :ref:`explosiveness<class_CPUParticles3D_property_explosiveness>` | ``0.0`` |
  93. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  94. | :ref:`int<class_int>` | :ref:`fixed_fps<class_CPUParticles3D_property_fixed_fps>` | ``0`` |
  95. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  96. | :ref:`float<class_float>` | :ref:`flatness<class_CPUParticles3D_property_flatness>` | ``0.0`` |
  97. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  98. | :ref:`bool<class_bool>` | :ref:`fract_delta<class_CPUParticles3D_property_fract_delta>` | ``true`` |
  99. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  100. | :ref:`Vector3<class_Vector3>` | :ref:`gravity<class_CPUParticles3D_property_gravity>` | ``Vector3(0, -9.8, 0)`` |
  101. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  102. | :ref:`Curve<class_Curve>` | :ref:`hue_variation_curve<class_CPUParticles3D_property_hue_variation_curve>` | |
  103. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  104. | :ref:`float<class_float>` | :ref:`hue_variation_max<class_CPUParticles3D_property_hue_variation_max>` | ``0.0`` |
  105. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  106. | :ref:`float<class_float>` | :ref:`hue_variation_min<class_CPUParticles3D_property_hue_variation_min>` | ``0.0`` |
  107. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  108. | :ref:`float<class_float>` | :ref:`initial_velocity_max<class_CPUParticles3D_property_initial_velocity_max>` | ``0.0`` |
  109. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  110. | :ref:`float<class_float>` | :ref:`initial_velocity_min<class_CPUParticles3D_property_initial_velocity_min>` | ``0.0`` |
  111. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  112. | :ref:`float<class_float>` | :ref:`lifetime<class_CPUParticles3D_property_lifetime>` | ``1.0`` |
  113. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  114. | :ref:`float<class_float>` | :ref:`lifetime_randomness<class_CPUParticles3D_property_lifetime_randomness>` | ``0.0`` |
  115. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  116. | :ref:`Curve<class_Curve>` | :ref:`linear_accel_curve<class_CPUParticles3D_property_linear_accel_curve>` | |
  117. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  118. | :ref:`float<class_float>` | :ref:`linear_accel_max<class_CPUParticles3D_property_linear_accel_max>` | ``0.0`` |
  119. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  120. | :ref:`float<class_float>` | :ref:`linear_accel_min<class_CPUParticles3D_property_linear_accel_min>` | ``0.0`` |
  121. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  122. | :ref:`bool<class_bool>` | :ref:`local_coords<class_CPUParticles3D_property_local_coords>` | ``false`` |
  123. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  124. | :ref:`Mesh<class_Mesh>` | :ref:`mesh<class_CPUParticles3D_property_mesh>` | |
  125. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  126. | :ref:`bool<class_bool>` | :ref:`one_shot<class_CPUParticles3D_property_one_shot>` | ``false`` |
  127. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  128. | :ref:`Curve<class_Curve>` | :ref:`orbit_velocity_curve<class_CPUParticles3D_property_orbit_velocity_curve>` | |
  129. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  130. | :ref:`float<class_float>` | :ref:`orbit_velocity_max<class_CPUParticles3D_property_orbit_velocity_max>` | |
  131. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  132. | :ref:`float<class_float>` | :ref:`orbit_velocity_min<class_CPUParticles3D_property_orbit_velocity_min>` | |
  133. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  134. | :ref:`bool<class_bool>` | :ref:`particle_flag_align_y<class_CPUParticles3D_property_particle_flag_align_y>` | ``false`` |
  135. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  136. | :ref:`bool<class_bool>` | :ref:`particle_flag_disable_z<class_CPUParticles3D_property_particle_flag_disable_z>` | ``false`` |
  137. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  138. | :ref:`bool<class_bool>` | :ref:`particle_flag_rotate_y<class_CPUParticles3D_property_particle_flag_rotate_y>` | ``false`` |
  139. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  140. | :ref:`float<class_float>` | :ref:`preprocess<class_CPUParticles3D_property_preprocess>` | ``0.0`` |
  141. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  142. | :ref:`Curve<class_Curve>` | :ref:`radial_accel_curve<class_CPUParticles3D_property_radial_accel_curve>` | |
  143. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  144. | :ref:`float<class_float>` | :ref:`radial_accel_max<class_CPUParticles3D_property_radial_accel_max>` | ``0.0`` |
  145. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  146. | :ref:`float<class_float>` | :ref:`radial_accel_min<class_CPUParticles3D_property_radial_accel_min>` | ``0.0`` |
  147. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  148. | :ref:`float<class_float>` | :ref:`randomness<class_CPUParticles3D_property_randomness>` | ``0.0`` |
  149. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  150. | :ref:`Curve<class_Curve>` | :ref:`scale_amount_curve<class_CPUParticles3D_property_scale_amount_curve>` | |
  151. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  152. | :ref:`float<class_float>` | :ref:`scale_amount_max<class_CPUParticles3D_property_scale_amount_max>` | ``1.0`` |
  153. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  154. | :ref:`float<class_float>` | :ref:`scale_amount_min<class_CPUParticles3D_property_scale_amount_min>` | ``1.0`` |
  155. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  156. | :ref:`Curve<class_Curve>` | :ref:`scale_curve_x<class_CPUParticles3D_property_scale_curve_x>` | |
  157. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  158. | :ref:`Curve<class_Curve>` | :ref:`scale_curve_y<class_CPUParticles3D_property_scale_curve_y>` | |
  159. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  160. | :ref:`Curve<class_Curve>` | :ref:`scale_curve_z<class_CPUParticles3D_property_scale_curve_z>` | |
  161. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  162. | :ref:`float<class_float>` | :ref:`speed_scale<class_CPUParticles3D_property_speed_scale>` | ``1.0`` |
  163. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  164. | :ref:`bool<class_bool>` | :ref:`split_scale<class_CPUParticles3D_property_split_scale>` | ``false`` |
  165. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  166. | :ref:`float<class_float>` | :ref:`spread<class_CPUParticles3D_property_spread>` | ``45.0`` |
  167. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  168. | :ref:`Curve<class_Curve>` | :ref:`tangential_accel_curve<class_CPUParticles3D_property_tangential_accel_curve>` | |
  169. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  170. | :ref:`float<class_float>` | :ref:`tangential_accel_max<class_CPUParticles3D_property_tangential_accel_max>` | ``0.0`` |
  171. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  172. | :ref:`float<class_float>` | :ref:`tangential_accel_min<class_CPUParticles3D_property_tangential_accel_min>` | ``0.0`` |
  173. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  174. | :ref:`AABB<class_AABB>` | :ref:`visibility_aabb<class_CPUParticles3D_property_visibility_aabb>` | ``AABB(0, 0, 0, 0, 0, 0)`` |
  175. +---------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------+
  176. .. rst-class:: classref-reftable-group
  177. Methods
  178. -------
  179. .. table::
  180. :widths: auto
  181. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  182. | :ref:`AABB<class_AABB>` | :ref:`capture_aabb<class_CPUParticles3D_method_capture_aabb>`\ (\ ) |const| |
  183. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  184. | |void| | :ref:`convert_from_particles<class_CPUParticles3D_method_convert_from_particles>`\ (\ particles\: :ref:`Node<class_Node>`\ ) |
  185. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  186. | :ref:`Curve<class_Curve>` | :ref:`get_param_curve<class_CPUParticles3D_method_get_param_curve>`\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const| |
  187. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  188. | :ref:`float<class_float>` | :ref:`get_param_max<class_CPUParticles3D_method_get_param_max>`\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const| |
  189. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  190. | :ref:`float<class_float>` | :ref:`get_param_min<class_CPUParticles3D_method_get_param_min>`\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const| |
  191. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  192. | :ref:`bool<class_bool>` | :ref:`get_particle_flag<class_CPUParticles3D_method_get_particle_flag>`\ (\ particle_flag\: :ref:`ParticleFlags<enum_CPUParticles3D_ParticleFlags>`\ ) |const| |
  193. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  194. | |void| | :ref:`restart<class_CPUParticles3D_method_restart>`\ (\ ) |
  195. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  196. | |void| | :ref:`set_param_curve<class_CPUParticles3D_method_set_param_curve>`\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ ) |
  197. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  198. | |void| | :ref:`set_param_max<class_CPUParticles3D_method_set_param_max>`\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ ) |
  199. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  200. | |void| | :ref:`set_param_min<class_CPUParticles3D_method_set_param_min>`\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ ) |
  201. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  202. | |void| | :ref:`set_particle_flag<class_CPUParticles3D_method_set_particle_flag>`\ (\ particle_flag\: :ref:`ParticleFlags<enum_CPUParticles3D_ParticleFlags>`, enable\: :ref:`bool<class_bool>`\ ) |
  203. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  204. .. rst-class:: classref-section-separator
  205. ----
  206. .. rst-class:: classref-descriptions-group
  207. Signals
  208. -------
  209. .. _class_CPUParticles3D_signal_finished:
  210. .. rst-class:: classref-signal
  211. **finished**\ (\ ) :ref:`🔗<class_CPUParticles3D_signal_finished>`
  212. Emitted when all active particles have finished processing. When :ref:`one_shot<class_CPUParticles3D_property_one_shot>` is disabled, particles will process continuously, so this is never emitted.
  213. .. rst-class:: classref-section-separator
  214. ----
  215. .. rst-class:: classref-descriptions-group
  216. Enumerations
  217. ------------
  218. .. _enum_CPUParticles3D_DrawOrder:
  219. .. rst-class:: classref-enumeration
  220. enum **DrawOrder**: :ref:`🔗<enum_CPUParticles3D_DrawOrder>`
  221. .. _class_CPUParticles3D_constant_DRAW_ORDER_INDEX:
  222. .. rst-class:: classref-enumeration-constant
  223. :ref:`DrawOrder<enum_CPUParticles3D_DrawOrder>` **DRAW_ORDER_INDEX** = ``0``
  224. Particles are drawn in the order emitted.
  225. .. _class_CPUParticles3D_constant_DRAW_ORDER_LIFETIME:
  226. .. rst-class:: classref-enumeration-constant
  227. :ref:`DrawOrder<enum_CPUParticles3D_DrawOrder>` **DRAW_ORDER_LIFETIME** = ``1``
  228. Particles are drawn in order of remaining lifetime. In other words, the particle with the highest lifetime is drawn at the front.
  229. .. _class_CPUParticles3D_constant_DRAW_ORDER_VIEW_DEPTH:
  230. .. rst-class:: classref-enumeration-constant
  231. :ref:`DrawOrder<enum_CPUParticles3D_DrawOrder>` **DRAW_ORDER_VIEW_DEPTH** = ``2``
  232. Particles are drawn in order of depth.
  233. .. rst-class:: classref-item-separator
  234. ----
  235. .. _enum_CPUParticles3D_Parameter:
  236. .. rst-class:: classref-enumeration
  237. enum **Parameter**: :ref:`🔗<enum_CPUParticles3D_Parameter>`
  238. .. _class_CPUParticles3D_constant_PARAM_INITIAL_LINEAR_VELOCITY:
  239. .. rst-class:: classref-enumeration-constant
  240. :ref:`Parameter<enum_CPUParticles3D_Parameter>` **PARAM_INITIAL_LINEAR_VELOCITY** = ``0``
  241. Use with :ref:`set_param_min<class_CPUParticles3D_method_set_param_min>`, :ref:`set_param_max<class_CPUParticles3D_method_set_param_max>`, and :ref:`set_param_curve<class_CPUParticles3D_method_set_param_curve>` to set initial velocity properties.
  242. .. _class_CPUParticles3D_constant_PARAM_ANGULAR_VELOCITY:
  243. .. rst-class:: classref-enumeration-constant
  244. :ref:`Parameter<enum_CPUParticles3D_Parameter>` **PARAM_ANGULAR_VELOCITY** = ``1``
  245. Use with :ref:`set_param_min<class_CPUParticles3D_method_set_param_min>`, :ref:`set_param_max<class_CPUParticles3D_method_set_param_max>`, and :ref:`set_param_curve<class_CPUParticles3D_method_set_param_curve>` to set angular velocity properties.
  246. .. _class_CPUParticles3D_constant_PARAM_ORBIT_VELOCITY:
  247. .. rst-class:: classref-enumeration-constant
  248. :ref:`Parameter<enum_CPUParticles3D_Parameter>` **PARAM_ORBIT_VELOCITY** = ``2``
  249. Use with :ref:`set_param_min<class_CPUParticles3D_method_set_param_min>`, :ref:`set_param_max<class_CPUParticles3D_method_set_param_max>`, and :ref:`set_param_curve<class_CPUParticles3D_method_set_param_curve>` to set orbital velocity properties.
  250. .. _class_CPUParticles3D_constant_PARAM_LINEAR_ACCEL:
  251. .. rst-class:: classref-enumeration-constant
  252. :ref:`Parameter<enum_CPUParticles3D_Parameter>` **PARAM_LINEAR_ACCEL** = ``3``
  253. Use with :ref:`set_param_min<class_CPUParticles3D_method_set_param_min>`, :ref:`set_param_max<class_CPUParticles3D_method_set_param_max>`, and :ref:`set_param_curve<class_CPUParticles3D_method_set_param_curve>` to set linear acceleration properties.
  254. .. _class_CPUParticles3D_constant_PARAM_RADIAL_ACCEL:
  255. .. rst-class:: classref-enumeration-constant
  256. :ref:`Parameter<enum_CPUParticles3D_Parameter>` **PARAM_RADIAL_ACCEL** = ``4``
  257. Use with :ref:`set_param_min<class_CPUParticles3D_method_set_param_min>`, :ref:`set_param_max<class_CPUParticles3D_method_set_param_max>`, and :ref:`set_param_curve<class_CPUParticles3D_method_set_param_curve>` to set radial acceleration properties.
  258. .. _class_CPUParticles3D_constant_PARAM_TANGENTIAL_ACCEL:
  259. .. rst-class:: classref-enumeration-constant
  260. :ref:`Parameter<enum_CPUParticles3D_Parameter>` **PARAM_TANGENTIAL_ACCEL** = ``5``
  261. Use with :ref:`set_param_min<class_CPUParticles3D_method_set_param_min>`, :ref:`set_param_max<class_CPUParticles3D_method_set_param_max>`, and :ref:`set_param_curve<class_CPUParticles3D_method_set_param_curve>` to set tangential acceleration properties.
  262. .. _class_CPUParticles3D_constant_PARAM_DAMPING:
  263. .. rst-class:: classref-enumeration-constant
  264. :ref:`Parameter<enum_CPUParticles3D_Parameter>` **PARAM_DAMPING** = ``6``
  265. Use with :ref:`set_param_min<class_CPUParticles3D_method_set_param_min>`, :ref:`set_param_max<class_CPUParticles3D_method_set_param_max>`, and :ref:`set_param_curve<class_CPUParticles3D_method_set_param_curve>` to set damping properties.
  266. .. _class_CPUParticles3D_constant_PARAM_ANGLE:
  267. .. rst-class:: classref-enumeration-constant
  268. :ref:`Parameter<enum_CPUParticles3D_Parameter>` **PARAM_ANGLE** = ``7``
  269. Use with :ref:`set_param_min<class_CPUParticles3D_method_set_param_min>`, :ref:`set_param_max<class_CPUParticles3D_method_set_param_max>`, and :ref:`set_param_curve<class_CPUParticles3D_method_set_param_curve>` to set angle properties.
  270. .. _class_CPUParticles3D_constant_PARAM_SCALE:
  271. .. rst-class:: classref-enumeration-constant
  272. :ref:`Parameter<enum_CPUParticles3D_Parameter>` **PARAM_SCALE** = ``8``
  273. Use with :ref:`set_param_min<class_CPUParticles3D_method_set_param_min>`, :ref:`set_param_max<class_CPUParticles3D_method_set_param_max>`, and :ref:`set_param_curve<class_CPUParticles3D_method_set_param_curve>` to set scale properties.
  274. .. _class_CPUParticles3D_constant_PARAM_HUE_VARIATION:
  275. .. rst-class:: classref-enumeration-constant
  276. :ref:`Parameter<enum_CPUParticles3D_Parameter>` **PARAM_HUE_VARIATION** = ``9``
  277. Use with :ref:`set_param_min<class_CPUParticles3D_method_set_param_min>`, :ref:`set_param_max<class_CPUParticles3D_method_set_param_max>`, and :ref:`set_param_curve<class_CPUParticles3D_method_set_param_curve>` to set hue variation properties.
  278. .. _class_CPUParticles3D_constant_PARAM_ANIM_SPEED:
  279. .. rst-class:: classref-enumeration-constant
  280. :ref:`Parameter<enum_CPUParticles3D_Parameter>` **PARAM_ANIM_SPEED** = ``10``
  281. Use with :ref:`set_param_min<class_CPUParticles3D_method_set_param_min>`, :ref:`set_param_max<class_CPUParticles3D_method_set_param_max>`, and :ref:`set_param_curve<class_CPUParticles3D_method_set_param_curve>` to set animation speed properties.
  282. .. _class_CPUParticles3D_constant_PARAM_ANIM_OFFSET:
  283. .. rst-class:: classref-enumeration-constant
  284. :ref:`Parameter<enum_CPUParticles3D_Parameter>` **PARAM_ANIM_OFFSET** = ``11``
  285. Use with :ref:`set_param_min<class_CPUParticles3D_method_set_param_min>`, :ref:`set_param_max<class_CPUParticles3D_method_set_param_max>`, and :ref:`set_param_curve<class_CPUParticles3D_method_set_param_curve>` to set animation offset properties.
  286. .. _class_CPUParticles3D_constant_PARAM_MAX:
  287. .. rst-class:: classref-enumeration-constant
  288. :ref:`Parameter<enum_CPUParticles3D_Parameter>` **PARAM_MAX** = ``12``
  289. Represents the size of the :ref:`Parameter<enum_CPUParticles3D_Parameter>` enum.
  290. .. rst-class:: classref-item-separator
  291. ----
  292. .. _enum_CPUParticles3D_ParticleFlags:
  293. .. rst-class:: classref-enumeration
  294. enum **ParticleFlags**: :ref:`🔗<enum_CPUParticles3D_ParticleFlags>`
  295. .. _class_CPUParticles3D_constant_PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY:
  296. .. rst-class:: classref-enumeration-constant
  297. :ref:`ParticleFlags<enum_CPUParticles3D_ParticleFlags>` **PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY** = ``0``
  298. Use with :ref:`set_particle_flag<class_CPUParticles3D_method_set_particle_flag>` to set :ref:`particle_flag_align_y<class_CPUParticles3D_property_particle_flag_align_y>`.
  299. .. _class_CPUParticles3D_constant_PARTICLE_FLAG_ROTATE_Y:
  300. .. rst-class:: classref-enumeration-constant
  301. :ref:`ParticleFlags<enum_CPUParticles3D_ParticleFlags>` **PARTICLE_FLAG_ROTATE_Y** = ``1``
  302. Use with :ref:`set_particle_flag<class_CPUParticles3D_method_set_particle_flag>` to set :ref:`particle_flag_rotate_y<class_CPUParticles3D_property_particle_flag_rotate_y>`.
  303. .. _class_CPUParticles3D_constant_PARTICLE_FLAG_DISABLE_Z:
  304. .. rst-class:: classref-enumeration-constant
  305. :ref:`ParticleFlags<enum_CPUParticles3D_ParticleFlags>` **PARTICLE_FLAG_DISABLE_Z** = ``2``
  306. Use with :ref:`set_particle_flag<class_CPUParticles3D_method_set_particle_flag>` to set :ref:`particle_flag_disable_z<class_CPUParticles3D_property_particle_flag_disable_z>`.
  307. .. _class_CPUParticles3D_constant_PARTICLE_FLAG_MAX:
  308. .. rst-class:: classref-enumeration-constant
  309. :ref:`ParticleFlags<enum_CPUParticles3D_ParticleFlags>` **PARTICLE_FLAG_MAX** = ``3``
  310. Represents the size of the :ref:`ParticleFlags<enum_CPUParticles3D_ParticleFlags>` enum.
  311. .. rst-class:: classref-item-separator
  312. ----
  313. .. _enum_CPUParticles3D_EmissionShape:
  314. .. rst-class:: classref-enumeration
  315. enum **EmissionShape**: :ref:`🔗<enum_CPUParticles3D_EmissionShape>`
  316. .. _class_CPUParticles3D_constant_EMISSION_SHAPE_POINT:
  317. .. rst-class:: classref-enumeration-constant
  318. :ref:`EmissionShape<enum_CPUParticles3D_EmissionShape>` **EMISSION_SHAPE_POINT** = ``0``
  319. All particles will be emitted from a single point.
  320. .. _class_CPUParticles3D_constant_EMISSION_SHAPE_SPHERE:
  321. .. rst-class:: classref-enumeration-constant
  322. :ref:`EmissionShape<enum_CPUParticles3D_EmissionShape>` **EMISSION_SHAPE_SPHERE** = ``1``
  323. Particles will be emitted in the volume of a sphere.
  324. .. _class_CPUParticles3D_constant_EMISSION_SHAPE_SPHERE_SURFACE:
  325. .. rst-class:: classref-enumeration-constant
  326. :ref:`EmissionShape<enum_CPUParticles3D_EmissionShape>` **EMISSION_SHAPE_SPHERE_SURFACE** = ``2``
  327. Particles will be emitted on the surface of a sphere.
  328. .. _class_CPUParticles3D_constant_EMISSION_SHAPE_BOX:
  329. .. rst-class:: classref-enumeration-constant
  330. :ref:`EmissionShape<enum_CPUParticles3D_EmissionShape>` **EMISSION_SHAPE_BOX** = ``3``
  331. Particles will be emitted in the volume of a box.
  332. .. _class_CPUParticles3D_constant_EMISSION_SHAPE_POINTS:
  333. .. rst-class:: classref-enumeration-constant
  334. :ref:`EmissionShape<enum_CPUParticles3D_EmissionShape>` **EMISSION_SHAPE_POINTS** = ``4``
  335. Particles will be emitted at a position chosen randomly among :ref:`emission_points<class_CPUParticles3D_property_emission_points>`. Particle color will be modulated by :ref:`emission_colors<class_CPUParticles3D_property_emission_colors>`.
  336. .. _class_CPUParticles3D_constant_EMISSION_SHAPE_DIRECTED_POINTS:
  337. .. rst-class:: classref-enumeration-constant
  338. :ref:`EmissionShape<enum_CPUParticles3D_EmissionShape>` **EMISSION_SHAPE_DIRECTED_POINTS** = ``5``
  339. Particles will be emitted at a position chosen randomly among :ref:`emission_points<class_CPUParticles3D_property_emission_points>`. Particle velocity and rotation will be set based on :ref:`emission_normals<class_CPUParticles3D_property_emission_normals>`. Particle color will be modulated by :ref:`emission_colors<class_CPUParticles3D_property_emission_colors>`.
  340. .. _class_CPUParticles3D_constant_EMISSION_SHAPE_RING:
  341. .. rst-class:: classref-enumeration-constant
  342. :ref:`EmissionShape<enum_CPUParticles3D_EmissionShape>` **EMISSION_SHAPE_RING** = ``6``
  343. Particles will be emitted in a ring or cylinder.
  344. .. _class_CPUParticles3D_constant_EMISSION_SHAPE_MAX:
  345. .. rst-class:: classref-enumeration-constant
  346. :ref:`EmissionShape<enum_CPUParticles3D_EmissionShape>` **EMISSION_SHAPE_MAX** = ``7``
  347. Represents the size of the :ref:`EmissionShape<enum_CPUParticles3D_EmissionShape>` enum.
  348. .. rst-class:: classref-section-separator
  349. ----
  350. .. rst-class:: classref-descriptions-group
  351. Property Descriptions
  352. ---------------------
  353. .. _class_CPUParticles3D_property_amount:
  354. .. rst-class:: classref-property
  355. :ref:`int<class_int>` **amount** = ``8`` :ref:`🔗<class_CPUParticles3D_property_amount>`
  356. .. rst-class:: classref-property-setget
  357. - |void| **set_amount**\ (\ value\: :ref:`int<class_int>`\ )
  358. - :ref:`int<class_int>` **get_amount**\ (\ )
  359. Number of particles emitted in one emission cycle.
  360. .. rst-class:: classref-item-separator
  361. ----
  362. .. _class_CPUParticles3D_property_angle_curve:
  363. .. rst-class:: classref-property
  364. :ref:`Curve<class_Curve>` **angle_curve** :ref:`🔗<class_CPUParticles3D_property_angle_curve>`
  365. .. rst-class:: classref-property-setget
  366. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  367. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  368. Each particle's rotation will be animated along this :ref:`Curve<class_Curve>`.
  369. .. rst-class:: classref-item-separator
  370. ----
  371. .. _class_CPUParticles3D_property_angle_max:
  372. .. rst-class:: classref-property
  373. :ref:`float<class_float>` **angle_max** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_angle_max>`
  374. .. rst-class:: classref-property-setget
  375. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  376. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  377. Maximum angle.
  378. .. rst-class:: classref-item-separator
  379. ----
  380. .. _class_CPUParticles3D_property_angle_min:
  381. .. rst-class:: classref-property
  382. :ref:`float<class_float>` **angle_min** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_angle_min>`
  383. .. rst-class:: classref-property-setget
  384. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  385. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  386. Minimum angle.
  387. .. rst-class:: classref-item-separator
  388. ----
  389. .. _class_CPUParticles3D_property_angular_velocity_curve:
  390. .. rst-class:: classref-property
  391. :ref:`Curve<class_Curve>` **angular_velocity_curve** :ref:`🔗<class_CPUParticles3D_property_angular_velocity_curve>`
  392. .. rst-class:: classref-property-setget
  393. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  394. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  395. Each particle's angular velocity (rotation speed) will vary along this :ref:`Curve<class_Curve>` over its lifetime.
  396. .. rst-class:: classref-item-separator
  397. ----
  398. .. _class_CPUParticles3D_property_angular_velocity_max:
  399. .. rst-class:: classref-property
  400. :ref:`float<class_float>` **angular_velocity_max** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_angular_velocity_max>`
  401. .. rst-class:: classref-property-setget
  402. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  403. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  404. Maximum initial angular velocity (rotation speed) applied to each particle in *degrees* per second.
  405. .. rst-class:: classref-item-separator
  406. ----
  407. .. _class_CPUParticles3D_property_angular_velocity_min:
  408. .. rst-class:: classref-property
  409. :ref:`float<class_float>` **angular_velocity_min** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_angular_velocity_min>`
  410. .. rst-class:: classref-property-setget
  411. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  412. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  413. Minimum initial angular velocity (rotation speed) applied to each particle in *degrees* per second.
  414. .. rst-class:: classref-item-separator
  415. ----
  416. .. _class_CPUParticles3D_property_anim_offset_curve:
  417. .. rst-class:: classref-property
  418. :ref:`Curve<class_Curve>` **anim_offset_curve** :ref:`🔗<class_CPUParticles3D_property_anim_offset_curve>`
  419. .. rst-class:: classref-property-setget
  420. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  421. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  422. Each particle's animation offset will vary along this :ref:`Curve<class_Curve>`.
  423. .. rst-class:: classref-item-separator
  424. ----
  425. .. _class_CPUParticles3D_property_anim_offset_max:
  426. .. rst-class:: classref-property
  427. :ref:`float<class_float>` **anim_offset_max** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_anim_offset_max>`
  428. .. rst-class:: classref-property-setget
  429. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  430. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  431. Maximum animation offset.
  432. .. rst-class:: classref-item-separator
  433. ----
  434. .. _class_CPUParticles3D_property_anim_offset_min:
  435. .. rst-class:: classref-property
  436. :ref:`float<class_float>` **anim_offset_min** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_anim_offset_min>`
  437. .. rst-class:: classref-property-setget
  438. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  439. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  440. Minimum animation offset.
  441. .. rst-class:: classref-item-separator
  442. ----
  443. .. _class_CPUParticles3D_property_anim_speed_curve:
  444. .. rst-class:: classref-property
  445. :ref:`Curve<class_Curve>` **anim_speed_curve** :ref:`🔗<class_CPUParticles3D_property_anim_speed_curve>`
  446. .. rst-class:: classref-property-setget
  447. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  448. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  449. Each particle's animation speed will vary along this :ref:`Curve<class_Curve>`.
  450. .. rst-class:: classref-item-separator
  451. ----
  452. .. _class_CPUParticles3D_property_anim_speed_max:
  453. .. rst-class:: classref-property
  454. :ref:`float<class_float>` **anim_speed_max** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_anim_speed_max>`
  455. .. rst-class:: classref-property-setget
  456. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  457. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  458. Maximum particle animation speed.
  459. .. rst-class:: classref-item-separator
  460. ----
  461. .. _class_CPUParticles3D_property_anim_speed_min:
  462. .. rst-class:: classref-property
  463. :ref:`float<class_float>` **anim_speed_min** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_anim_speed_min>`
  464. .. rst-class:: classref-property-setget
  465. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  466. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  467. Minimum particle animation speed.
  468. .. rst-class:: classref-item-separator
  469. ----
  470. .. _class_CPUParticles3D_property_color:
  471. .. rst-class:: classref-property
  472. :ref:`Color<class_Color>` **color** = ``Color(1, 1, 1, 1)`` :ref:`🔗<class_CPUParticles3D_property_color>`
  473. .. rst-class:: classref-property-setget
  474. - |void| **set_color**\ (\ value\: :ref:`Color<class_Color>`\ )
  475. - :ref:`Color<class_Color>` **get_color**\ (\ )
  476. Each particle's initial color.
  477. \ **Note:** :ref:`color<class_CPUParticles3D_property_color>` multiplies the particle mesh's vertex colors. To have a visible effect on a :ref:`BaseMaterial3D<class_BaseMaterial3D>`, :ref:`BaseMaterial3D.vertex_color_use_as_albedo<class_BaseMaterial3D_property_vertex_color_use_as_albedo>` *must* be ``true``. For a :ref:`ShaderMaterial<class_ShaderMaterial>`, ``ALBEDO *= COLOR.rgb;`` must be inserted in the shader's ``fragment()`` function. Otherwise, :ref:`color<class_CPUParticles3D_property_color>` will have no visible effect.
  478. .. rst-class:: classref-item-separator
  479. ----
  480. .. _class_CPUParticles3D_property_color_initial_ramp:
  481. .. rst-class:: classref-property
  482. :ref:`Gradient<class_Gradient>` **color_initial_ramp** :ref:`🔗<class_CPUParticles3D_property_color_initial_ramp>`
  483. .. rst-class:: classref-property-setget
  484. - |void| **set_color_initial_ramp**\ (\ value\: :ref:`Gradient<class_Gradient>`\ )
  485. - :ref:`Gradient<class_Gradient>` **get_color_initial_ramp**\ (\ )
  486. Each particle's initial color will vary along this :ref:`GradientTexture1D<class_GradientTexture1D>` (multiplied with :ref:`color<class_CPUParticles3D_property_color>`).
  487. \ **Note:** :ref:`color_initial_ramp<class_CPUParticles3D_property_color_initial_ramp>` multiplies the particle mesh's vertex colors. To have a visible effect on a :ref:`BaseMaterial3D<class_BaseMaterial3D>`, :ref:`BaseMaterial3D.vertex_color_use_as_albedo<class_BaseMaterial3D_property_vertex_color_use_as_albedo>` *must* be ``true``. For a :ref:`ShaderMaterial<class_ShaderMaterial>`, ``ALBEDO *= COLOR.rgb;`` must be inserted in the shader's ``fragment()`` function. Otherwise, :ref:`color_initial_ramp<class_CPUParticles3D_property_color_initial_ramp>` will have no visible effect.
  488. .. rst-class:: classref-item-separator
  489. ----
  490. .. _class_CPUParticles3D_property_color_ramp:
  491. .. rst-class:: classref-property
  492. :ref:`Gradient<class_Gradient>` **color_ramp** :ref:`🔗<class_CPUParticles3D_property_color_ramp>`
  493. .. rst-class:: classref-property-setget
  494. - |void| **set_color_ramp**\ (\ value\: :ref:`Gradient<class_Gradient>`\ )
  495. - :ref:`Gradient<class_Gradient>` **get_color_ramp**\ (\ )
  496. Each particle's color will vary along this :ref:`GradientTexture1D<class_GradientTexture1D>` over its lifetime (multiplied with :ref:`color<class_CPUParticles3D_property_color>`).
  497. \ **Note:** :ref:`color_ramp<class_CPUParticles3D_property_color_ramp>` multiplies the particle mesh's vertex colors. To have a visible effect on a :ref:`BaseMaterial3D<class_BaseMaterial3D>`, :ref:`BaseMaterial3D.vertex_color_use_as_albedo<class_BaseMaterial3D_property_vertex_color_use_as_albedo>` *must* be ``true``. For a :ref:`ShaderMaterial<class_ShaderMaterial>`, ``ALBEDO *= COLOR.rgb;`` must be inserted in the shader's ``fragment()`` function. Otherwise, :ref:`color_ramp<class_CPUParticles3D_property_color_ramp>` will have no visible effect.
  498. .. rst-class:: classref-item-separator
  499. ----
  500. .. _class_CPUParticles3D_property_damping_curve:
  501. .. rst-class:: classref-property
  502. :ref:`Curve<class_Curve>` **damping_curve** :ref:`🔗<class_CPUParticles3D_property_damping_curve>`
  503. .. rst-class:: classref-property-setget
  504. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  505. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  506. Damping will vary along this :ref:`Curve<class_Curve>`.
  507. .. rst-class:: classref-item-separator
  508. ----
  509. .. _class_CPUParticles3D_property_damping_max:
  510. .. rst-class:: classref-property
  511. :ref:`float<class_float>` **damping_max** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_damping_max>`
  512. .. rst-class:: classref-property-setget
  513. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  514. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  515. Maximum damping.
  516. .. rst-class:: classref-item-separator
  517. ----
  518. .. _class_CPUParticles3D_property_damping_min:
  519. .. rst-class:: classref-property
  520. :ref:`float<class_float>` **damping_min** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_damping_min>`
  521. .. rst-class:: classref-property-setget
  522. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  523. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  524. Minimum damping.
  525. .. rst-class:: classref-item-separator
  526. ----
  527. .. _class_CPUParticles3D_property_direction:
  528. .. rst-class:: classref-property
  529. :ref:`Vector3<class_Vector3>` **direction** = ``Vector3(1, 0, 0)`` :ref:`🔗<class_CPUParticles3D_property_direction>`
  530. .. rst-class:: classref-property-setget
  531. - |void| **set_direction**\ (\ value\: :ref:`Vector3<class_Vector3>`\ )
  532. - :ref:`Vector3<class_Vector3>` **get_direction**\ (\ )
  533. Unit vector specifying the particles' emission direction.
  534. .. rst-class:: classref-item-separator
  535. ----
  536. .. _class_CPUParticles3D_property_draw_order:
  537. .. rst-class:: classref-property
  538. :ref:`DrawOrder<enum_CPUParticles3D_DrawOrder>` **draw_order** = ``0`` :ref:`🔗<class_CPUParticles3D_property_draw_order>`
  539. .. rst-class:: classref-property-setget
  540. - |void| **set_draw_order**\ (\ value\: :ref:`DrawOrder<enum_CPUParticles3D_DrawOrder>`\ )
  541. - :ref:`DrawOrder<enum_CPUParticles3D_DrawOrder>` **get_draw_order**\ (\ )
  542. Particle draw order. Uses :ref:`DrawOrder<enum_CPUParticles3D_DrawOrder>` values.
  543. .. rst-class:: classref-item-separator
  544. ----
  545. .. _class_CPUParticles3D_property_emission_box_extents:
  546. .. rst-class:: classref-property
  547. :ref:`Vector3<class_Vector3>` **emission_box_extents** :ref:`🔗<class_CPUParticles3D_property_emission_box_extents>`
  548. .. rst-class:: classref-property-setget
  549. - |void| **set_emission_box_extents**\ (\ value\: :ref:`Vector3<class_Vector3>`\ )
  550. - :ref:`Vector3<class_Vector3>` **get_emission_box_extents**\ (\ )
  551. The rectangle's extents if :ref:`emission_shape<class_CPUParticles3D_property_emission_shape>` is set to :ref:`EMISSION_SHAPE_BOX<class_CPUParticles3D_constant_EMISSION_SHAPE_BOX>`.
  552. .. rst-class:: classref-item-separator
  553. ----
  554. .. _class_CPUParticles3D_property_emission_colors:
  555. .. rst-class:: classref-property
  556. :ref:`PackedColorArray<class_PackedColorArray>` **emission_colors** = ``PackedColorArray()`` :ref:`🔗<class_CPUParticles3D_property_emission_colors>`
  557. .. rst-class:: classref-property-setget
  558. - |void| **set_emission_colors**\ (\ value\: :ref:`PackedColorArray<class_PackedColorArray>`\ )
  559. - :ref:`PackedColorArray<class_PackedColorArray>` **get_emission_colors**\ (\ )
  560. Sets the :ref:`Color<class_Color>`\ s to modulate particles by when using :ref:`EMISSION_SHAPE_POINTS<class_CPUParticles3D_constant_EMISSION_SHAPE_POINTS>` or :ref:`EMISSION_SHAPE_DIRECTED_POINTS<class_CPUParticles3D_constant_EMISSION_SHAPE_DIRECTED_POINTS>`.
  561. \ **Note:** :ref:`emission_colors<class_CPUParticles3D_property_emission_colors>` multiplies the particle mesh's vertex colors. To have a visible effect on a :ref:`BaseMaterial3D<class_BaseMaterial3D>`, :ref:`BaseMaterial3D.vertex_color_use_as_albedo<class_BaseMaterial3D_property_vertex_color_use_as_albedo>` *must* be ``true``. For a :ref:`ShaderMaterial<class_ShaderMaterial>`, ``ALBEDO *= COLOR.rgb;`` must be inserted in the shader's ``fragment()`` function. Otherwise, :ref:`emission_colors<class_CPUParticles3D_property_emission_colors>` will have no visible effect.
  562. **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedColorArray<class_PackedColorArray>` for more details.
  563. .. rst-class:: classref-item-separator
  564. ----
  565. .. _class_CPUParticles3D_property_emission_normals:
  566. .. rst-class:: classref-property
  567. :ref:`PackedVector3Array<class_PackedVector3Array>` **emission_normals** :ref:`🔗<class_CPUParticles3D_property_emission_normals>`
  568. .. rst-class:: classref-property-setget
  569. - |void| **set_emission_normals**\ (\ value\: :ref:`PackedVector3Array<class_PackedVector3Array>`\ )
  570. - :ref:`PackedVector3Array<class_PackedVector3Array>` **get_emission_normals**\ (\ )
  571. Sets the direction the particles will be emitted in when using :ref:`EMISSION_SHAPE_DIRECTED_POINTS<class_CPUParticles3D_constant_EMISSION_SHAPE_DIRECTED_POINTS>`.
  572. **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedVector3Array<class_PackedVector3Array>` for more details.
  573. .. rst-class:: classref-item-separator
  574. ----
  575. .. _class_CPUParticles3D_property_emission_points:
  576. .. rst-class:: classref-property
  577. :ref:`PackedVector3Array<class_PackedVector3Array>` **emission_points** :ref:`🔗<class_CPUParticles3D_property_emission_points>`
  578. .. rst-class:: classref-property-setget
  579. - |void| **set_emission_points**\ (\ value\: :ref:`PackedVector3Array<class_PackedVector3Array>`\ )
  580. - :ref:`PackedVector3Array<class_PackedVector3Array>` **get_emission_points**\ (\ )
  581. Sets the initial positions to spawn particles when using :ref:`EMISSION_SHAPE_POINTS<class_CPUParticles3D_constant_EMISSION_SHAPE_POINTS>` or :ref:`EMISSION_SHAPE_DIRECTED_POINTS<class_CPUParticles3D_constant_EMISSION_SHAPE_DIRECTED_POINTS>`.
  582. **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedVector3Array<class_PackedVector3Array>` for more details.
  583. .. rst-class:: classref-item-separator
  584. ----
  585. .. _class_CPUParticles3D_property_emission_ring_axis:
  586. .. rst-class:: classref-property
  587. :ref:`Vector3<class_Vector3>` **emission_ring_axis** :ref:`🔗<class_CPUParticles3D_property_emission_ring_axis>`
  588. .. rst-class:: classref-property-setget
  589. - |void| **set_emission_ring_axis**\ (\ value\: :ref:`Vector3<class_Vector3>`\ )
  590. - :ref:`Vector3<class_Vector3>` **get_emission_ring_axis**\ (\ )
  591. The axis of the ring when using the emitter :ref:`EMISSION_SHAPE_RING<class_CPUParticles3D_constant_EMISSION_SHAPE_RING>`.
  592. .. rst-class:: classref-item-separator
  593. ----
  594. .. _class_CPUParticles3D_property_emission_ring_cone_angle:
  595. .. rst-class:: classref-property
  596. :ref:`float<class_float>` **emission_ring_cone_angle** :ref:`🔗<class_CPUParticles3D_property_emission_ring_cone_angle>`
  597. .. rst-class:: classref-property-setget
  598. - |void| **set_emission_ring_cone_angle**\ (\ value\: :ref:`float<class_float>`\ )
  599. - :ref:`float<class_float>` **get_emission_ring_cone_angle**\ (\ )
  600. The angle of the cone when using the emitter :ref:`EMISSION_SHAPE_RING<class_CPUParticles3D_constant_EMISSION_SHAPE_RING>`. The default angle of 90 degrees results in a ring, while an angle of 0 degrees results in a cone. Intermediate values will result in a ring where one end is larger than the other.
  601. \ **Note:** Depending on :ref:`emission_ring_height<class_CPUParticles3D_property_emission_ring_height>`, the angle may be clamped if the ring's end is reached to form a perfect cone.
  602. .. rst-class:: classref-item-separator
  603. ----
  604. .. _class_CPUParticles3D_property_emission_ring_height:
  605. .. rst-class:: classref-property
  606. :ref:`float<class_float>` **emission_ring_height** :ref:`🔗<class_CPUParticles3D_property_emission_ring_height>`
  607. .. rst-class:: classref-property-setget
  608. - |void| **set_emission_ring_height**\ (\ value\: :ref:`float<class_float>`\ )
  609. - :ref:`float<class_float>` **get_emission_ring_height**\ (\ )
  610. The height of the ring when using the emitter :ref:`EMISSION_SHAPE_RING<class_CPUParticles3D_constant_EMISSION_SHAPE_RING>`.
  611. .. rst-class:: classref-item-separator
  612. ----
  613. .. _class_CPUParticles3D_property_emission_ring_inner_radius:
  614. .. rst-class:: classref-property
  615. :ref:`float<class_float>` **emission_ring_inner_radius** :ref:`🔗<class_CPUParticles3D_property_emission_ring_inner_radius>`
  616. .. rst-class:: classref-property-setget
  617. - |void| **set_emission_ring_inner_radius**\ (\ value\: :ref:`float<class_float>`\ )
  618. - :ref:`float<class_float>` **get_emission_ring_inner_radius**\ (\ )
  619. The inner radius of the ring when using the emitter :ref:`EMISSION_SHAPE_RING<class_CPUParticles3D_constant_EMISSION_SHAPE_RING>`.
  620. .. rst-class:: classref-item-separator
  621. ----
  622. .. _class_CPUParticles3D_property_emission_ring_radius:
  623. .. rst-class:: classref-property
  624. :ref:`float<class_float>` **emission_ring_radius** :ref:`🔗<class_CPUParticles3D_property_emission_ring_radius>`
  625. .. rst-class:: classref-property-setget
  626. - |void| **set_emission_ring_radius**\ (\ value\: :ref:`float<class_float>`\ )
  627. - :ref:`float<class_float>` **get_emission_ring_radius**\ (\ )
  628. The radius of the ring when using the emitter :ref:`EMISSION_SHAPE_RING<class_CPUParticles3D_constant_EMISSION_SHAPE_RING>`.
  629. .. rst-class:: classref-item-separator
  630. ----
  631. .. _class_CPUParticles3D_property_emission_shape:
  632. .. rst-class:: classref-property
  633. :ref:`EmissionShape<enum_CPUParticles3D_EmissionShape>` **emission_shape** = ``0`` :ref:`🔗<class_CPUParticles3D_property_emission_shape>`
  634. .. rst-class:: classref-property-setget
  635. - |void| **set_emission_shape**\ (\ value\: :ref:`EmissionShape<enum_CPUParticles3D_EmissionShape>`\ )
  636. - :ref:`EmissionShape<enum_CPUParticles3D_EmissionShape>` **get_emission_shape**\ (\ )
  637. Particles will be emitted inside this region. See :ref:`EmissionShape<enum_CPUParticles3D_EmissionShape>` for possible values.
  638. .. rst-class:: classref-item-separator
  639. ----
  640. .. _class_CPUParticles3D_property_emission_sphere_radius:
  641. .. rst-class:: classref-property
  642. :ref:`float<class_float>` **emission_sphere_radius** :ref:`🔗<class_CPUParticles3D_property_emission_sphere_radius>`
  643. .. rst-class:: classref-property-setget
  644. - |void| **set_emission_sphere_radius**\ (\ value\: :ref:`float<class_float>`\ )
  645. - :ref:`float<class_float>` **get_emission_sphere_radius**\ (\ )
  646. The sphere's radius if :ref:`EmissionShape<enum_CPUParticles3D_EmissionShape>` is set to :ref:`EMISSION_SHAPE_SPHERE<class_CPUParticles3D_constant_EMISSION_SHAPE_SPHERE>`.
  647. .. rst-class:: classref-item-separator
  648. ----
  649. .. _class_CPUParticles3D_property_emitting:
  650. .. rst-class:: classref-property
  651. :ref:`bool<class_bool>` **emitting** = ``true`` :ref:`🔗<class_CPUParticles3D_property_emitting>`
  652. .. rst-class:: classref-property-setget
  653. - |void| **set_emitting**\ (\ value\: :ref:`bool<class_bool>`\ )
  654. - :ref:`bool<class_bool>` **is_emitting**\ (\ )
  655. If ``true``, particles are being emitted. :ref:`emitting<class_CPUParticles3D_property_emitting>` can be used to start and stop particles from emitting. However, if :ref:`one_shot<class_CPUParticles3D_property_one_shot>` is ``true`` setting :ref:`emitting<class_CPUParticles3D_property_emitting>` to ``true`` will not restart the emission cycle until after all active particles finish processing. You can use the :ref:`finished<class_CPUParticles3D_signal_finished>` signal to be notified once all active particles finish processing.
  656. .. rst-class:: classref-item-separator
  657. ----
  658. .. _class_CPUParticles3D_property_explosiveness:
  659. .. rst-class:: classref-property
  660. :ref:`float<class_float>` **explosiveness** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_explosiveness>`
  661. .. rst-class:: classref-property-setget
  662. - |void| **set_explosiveness_ratio**\ (\ value\: :ref:`float<class_float>`\ )
  663. - :ref:`float<class_float>` **get_explosiveness_ratio**\ (\ )
  664. How rapidly particles in an emission cycle are emitted. If greater than ``0``, there will be a gap in emissions before the next cycle begins.
  665. .. rst-class:: classref-item-separator
  666. ----
  667. .. _class_CPUParticles3D_property_fixed_fps:
  668. .. rst-class:: classref-property
  669. :ref:`int<class_int>` **fixed_fps** = ``0`` :ref:`🔗<class_CPUParticles3D_property_fixed_fps>`
  670. .. rst-class:: classref-property-setget
  671. - |void| **set_fixed_fps**\ (\ value\: :ref:`int<class_int>`\ )
  672. - :ref:`int<class_int>` **get_fixed_fps**\ (\ )
  673. The particle system's frame rate is fixed to a value. For example, changing the value to 2 will make the particles render at 2 frames per second. Note this does not slow down the particle system itself.
  674. .. rst-class:: classref-item-separator
  675. ----
  676. .. _class_CPUParticles3D_property_flatness:
  677. .. rst-class:: classref-property
  678. :ref:`float<class_float>` **flatness** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_flatness>`
  679. .. rst-class:: classref-property-setget
  680. - |void| **set_flatness**\ (\ value\: :ref:`float<class_float>`\ )
  681. - :ref:`float<class_float>` **get_flatness**\ (\ )
  682. Amount of :ref:`spread<class_CPUParticles3D_property_spread>` in Y/Z plane. A value of ``1`` restricts particles to X/Z plane.
  683. .. rst-class:: classref-item-separator
  684. ----
  685. .. _class_CPUParticles3D_property_fract_delta:
  686. .. rst-class:: classref-property
  687. :ref:`bool<class_bool>` **fract_delta** = ``true`` :ref:`🔗<class_CPUParticles3D_property_fract_delta>`
  688. .. rst-class:: classref-property-setget
  689. - |void| **set_fractional_delta**\ (\ value\: :ref:`bool<class_bool>`\ )
  690. - :ref:`bool<class_bool>` **get_fractional_delta**\ (\ )
  691. If ``true``, results in fractional delta calculation which has a smoother particles display effect.
  692. .. rst-class:: classref-item-separator
  693. ----
  694. .. _class_CPUParticles3D_property_gravity:
  695. .. rst-class:: classref-property
  696. :ref:`Vector3<class_Vector3>` **gravity** = ``Vector3(0, -9.8, 0)`` :ref:`🔗<class_CPUParticles3D_property_gravity>`
  697. .. rst-class:: classref-property-setget
  698. - |void| **set_gravity**\ (\ value\: :ref:`Vector3<class_Vector3>`\ )
  699. - :ref:`Vector3<class_Vector3>` **get_gravity**\ (\ )
  700. Gravity applied to every particle.
  701. .. rst-class:: classref-item-separator
  702. ----
  703. .. _class_CPUParticles3D_property_hue_variation_curve:
  704. .. rst-class:: classref-property
  705. :ref:`Curve<class_Curve>` **hue_variation_curve** :ref:`🔗<class_CPUParticles3D_property_hue_variation_curve>`
  706. .. rst-class:: classref-property-setget
  707. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  708. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  709. Each particle's hue will vary along this :ref:`Curve<class_Curve>`.
  710. .. rst-class:: classref-item-separator
  711. ----
  712. .. _class_CPUParticles3D_property_hue_variation_max:
  713. .. rst-class:: classref-property
  714. :ref:`float<class_float>` **hue_variation_max** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_hue_variation_max>`
  715. .. rst-class:: classref-property-setget
  716. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  717. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  718. Maximum hue variation.
  719. .. rst-class:: classref-item-separator
  720. ----
  721. .. _class_CPUParticles3D_property_hue_variation_min:
  722. .. rst-class:: classref-property
  723. :ref:`float<class_float>` **hue_variation_min** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_hue_variation_min>`
  724. .. rst-class:: classref-property-setget
  725. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  726. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  727. Minimum hue variation.
  728. .. rst-class:: classref-item-separator
  729. ----
  730. .. _class_CPUParticles3D_property_initial_velocity_max:
  731. .. rst-class:: classref-property
  732. :ref:`float<class_float>` **initial_velocity_max** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_initial_velocity_max>`
  733. .. rst-class:: classref-property-setget
  734. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  735. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  736. Maximum value of the initial velocity.
  737. .. rst-class:: classref-item-separator
  738. ----
  739. .. _class_CPUParticles3D_property_initial_velocity_min:
  740. .. rst-class:: classref-property
  741. :ref:`float<class_float>` **initial_velocity_min** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_initial_velocity_min>`
  742. .. rst-class:: classref-property-setget
  743. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  744. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  745. Minimum value of the initial velocity.
  746. .. rst-class:: classref-item-separator
  747. ----
  748. .. _class_CPUParticles3D_property_lifetime:
  749. .. rst-class:: classref-property
  750. :ref:`float<class_float>` **lifetime** = ``1.0`` :ref:`🔗<class_CPUParticles3D_property_lifetime>`
  751. .. rst-class:: classref-property-setget
  752. - |void| **set_lifetime**\ (\ value\: :ref:`float<class_float>`\ )
  753. - :ref:`float<class_float>` **get_lifetime**\ (\ )
  754. Amount of time each particle will exist.
  755. .. rst-class:: classref-item-separator
  756. ----
  757. .. _class_CPUParticles3D_property_lifetime_randomness:
  758. .. rst-class:: classref-property
  759. :ref:`float<class_float>` **lifetime_randomness** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_lifetime_randomness>`
  760. .. rst-class:: classref-property-setget
  761. - |void| **set_lifetime_randomness**\ (\ value\: :ref:`float<class_float>`\ )
  762. - :ref:`float<class_float>` **get_lifetime_randomness**\ (\ )
  763. Particle lifetime randomness ratio.
  764. .. rst-class:: classref-item-separator
  765. ----
  766. .. _class_CPUParticles3D_property_linear_accel_curve:
  767. .. rst-class:: classref-property
  768. :ref:`Curve<class_Curve>` **linear_accel_curve** :ref:`🔗<class_CPUParticles3D_property_linear_accel_curve>`
  769. .. rst-class:: classref-property-setget
  770. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  771. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  772. Each particle's linear acceleration will vary along this :ref:`Curve<class_Curve>`.
  773. .. rst-class:: classref-item-separator
  774. ----
  775. .. _class_CPUParticles3D_property_linear_accel_max:
  776. .. rst-class:: classref-property
  777. :ref:`float<class_float>` **linear_accel_max** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_linear_accel_max>`
  778. .. rst-class:: classref-property-setget
  779. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  780. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  781. Maximum linear acceleration.
  782. .. rst-class:: classref-item-separator
  783. ----
  784. .. _class_CPUParticles3D_property_linear_accel_min:
  785. .. rst-class:: classref-property
  786. :ref:`float<class_float>` **linear_accel_min** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_linear_accel_min>`
  787. .. rst-class:: classref-property-setget
  788. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  789. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  790. Minimum linear acceleration.
  791. .. rst-class:: classref-item-separator
  792. ----
  793. .. _class_CPUParticles3D_property_local_coords:
  794. .. rst-class:: classref-property
  795. :ref:`bool<class_bool>` **local_coords** = ``false`` :ref:`🔗<class_CPUParticles3D_property_local_coords>`
  796. .. rst-class:: classref-property-setget
  797. - |void| **set_use_local_coordinates**\ (\ value\: :ref:`bool<class_bool>`\ )
  798. - :ref:`bool<class_bool>` **get_use_local_coordinates**\ (\ )
  799. If ``true``, particles use the parent node's coordinate space (known as local coordinates). This will cause particles to move and rotate along the **CPUParticles3D** node (and its parents) when it is moved or rotated. If ``false``, particles use global coordinates; they will not move or rotate along the **CPUParticles3D** node (and its parents) when it is moved or rotated.
  800. .. rst-class:: classref-item-separator
  801. ----
  802. .. _class_CPUParticles3D_property_mesh:
  803. .. rst-class:: classref-property
  804. :ref:`Mesh<class_Mesh>` **mesh** :ref:`🔗<class_CPUParticles3D_property_mesh>`
  805. .. rst-class:: classref-property-setget
  806. - |void| **set_mesh**\ (\ value\: :ref:`Mesh<class_Mesh>`\ )
  807. - :ref:`Mesh<class_Mesh>` **get_mesh**\ (\ )
  808. The :ref:`Mesh<class_Mesh>` used for each particle. If ``null``, particles will be spheres.
  809. .. rst-class:: classref-item-separator
  810. ----
  811. .. _class_CPUParticles3D_property_one_shot:
  812. .. rst-class:: classref-property
  813. :ref:`bool<class_bool>` **one_shot** = ``false`` :ref:`🔗<class_CPUParticles3D_property_one_shot>`
  814. .. rst-class:: classref-property-setget
  815. - |void| **set_one_shot**\ (\ value\: :ref:`bool<class_bool>`\ )
  816. - :ref:`bool<class_bool>` **get_one_shot**\ (\ )
  817. If ``true``, only one emission cycle occurs. If set ``true`` during a cycle, emission will stop at the cycle's end.
  818. .. rst-class:: classref-item-separator
  819. ----
  820. .. _class_CPUParticles3D_property_orbit_velocity_curve:
  821. .. rst-class:: classref-property
  822. :ref:`Curve<class_Curve>` **orbit_velocity_curve** :ref:`🔗<class_CPUParticles3D_property_orbit_velocity_curve>`
  823. .. rst-class:: classref-property-setget
  824. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  825. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  826. Each particle's orbital velocity will vary along this :ref:`Curve<class_Curve>`.
  827. .. rst-class:: classref-item-separator
  828. ----
  829. .. _class_CPUParticles3D_property_orbit_velocity_max:
  830. .. rst-class:: classref-property
  831. :ref:`float<class_float>` **orbit_velocity_max** :ref:`🔗<class_CPUParticles3D_property_orbit_velocity_max>`
  832. .. rst-class:: classref-property-setget
  833. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  834. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  835. Maximum orbit velocity.
  836. .. rst-class:: classref-item-separator
  837. ----
  838. .. _class_CPUParticles3D_property_orbit_velocity_min:
  839. .. rst-class:: classref-property
  840. :ref:`float<class_float>` **orbit_velocity_min** :ref:`🔗<class_CPUParticles3D_property_orbit_velocity_min>`
  841. .. rst-class:: classref-property-setget
  842. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  843. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  844. Minimum orbit velocity.
  845. .. rst-class:: classref-item-separator
  846. ----
  847. .. _class_CPUParticles3D_property_particle_flag_align_y:
  848. .. rst-class:: classref-property
  849. :ref:`bool<class_bool>` **particle_flag_align_y** = ``false`` :ref:`🔗<class_CPUParticles3D_property_particle_flag_align_y>`
  850. .. rst-class:: classref-property-setget
  851. - |void| **set_particle_flag**\ (\ particle_flag\: :ref:`ParticleFlags<enum_CPUParticles3D_ParticleFlags>`, enable\: :ref:`bool<class_bool>`\ )
  852. - :ref:`bool<class_bool>` **get_particle_flag**\ (\ particle_flag\: :ref:`ParticleFlags<enum_CPUParticles3D_ParticleFlags>`\ ) |const|
  853. Align Y axis of particle with the direction of its velocity.
  854. .. rst-class:: classref-item-separator
  855. ----
  856. .. _class_CPUParticles3D_property_particle_flag_disable_z:
  857. .. rst-class:: classref-property
  858. :ref:`bool<class_bool>` **particle_flag_disable_z** = ``false`` :ref:`🔗<class_CPUParticles3D_property_particle_flag_disable_z>`
  859. .. rst-class:: classref-property-setget
  860. - |void| **set_particle_flag**\ (\ particle_flag\: :ref:`ParticleFlags<enum_CPUParticles3D_ParticleFlags>`, enable\: :ref:`bool<class_bool>`\ )
  861. - :ref:`bool<class_bool>` **get_particle_flag**\ (\ particle_flag\: :ref:`ParticleFlags<enum_CPUParticles3D_ParticleFlags>`\ ) |const|
  862. If ``true``, particles will not move on the Z axis.
  863. .. rst-class:: classref-item-separator
  864. ----
  865. .. _class_CPUParticles3D_property_particle_flag_rotate_y:
  866. .. rst-class:: classref-property
  867. :ref:`bool<class_bool>` **particle_flag_rotate_y** = ``false`` :ref:`🔗<class_CPUParticles3D_property_particle_flag_rotate_y>`
  868. .. rst-class:: classref-property-setget
  869. - |void| **set_particle_flag**\ (\ particle_flag\: :ref:`ParticleFlags<enum_CPUParticles3D_ParticleFlags>`, enable\: :ref:`bool<class_bool>`\ )
  870. - :ref:`bool<class_bool>` **get_particle_flag**\ (\ particle_flag\: :ref:`ParticleFlags<enum_CPUParticles3D_ParticleFlags>`\ ) |const|
  871. If ``true``, particles rotate around Y axis by :ref:`angle_min<class_CPUParticles3D_property_angle_min>`.
  872. .. rst-class:: classref-item-separator
  873. ----
  874. .. _class_CPUParticles3D_property_preprocess:
  875. .. rst-class:: classref-property
  876. :ref:`float<class_float>` **preprocess** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_preprocess>`
  877. .. rst-class:: classref-property-setget
  878. - |void| **set_pre_process_time**\ (\ value\: :ref:`float<class_float>`\ )
  879. - :ref:`float<class_float>` **get_pre_process_time**\ (\ )
  880. Particle system starts as if it had already run for this many seconds.
  881. .. rst-class:: classref-item-separator
  882. ----
  883. .. _class_CPUParticles3D_property_radial_accel_curve:
  884. .. rst-class:: classref-property
  885. :ref:`Curve<class_Curve>` **radial_accel_curve** :ref:`🔗<class_CPUParticles3D_property_radial_accel_curve>`
  886. .. rst-class:: classref-property-setget
  887. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  888. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  889. Each particle's radial acceleration will vary along this :ref:`Curve<class_Curve>`.
  890. .. rst-class:: classref-item-separator
  891. ----
  892. .. _class_CPUParticles3D_property_radial_accel_max:
  893. .. rst-class:: classref-property
  894. :ref:`float<class_float>` **radial_accel_max** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_radial_accel_max>`
  895. .. rst-class:: classref-property-setget
  896. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  897. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  898. Maximum radial acceleration.
  899. .. rst-class:: classref-item-separator
  900. ----
  901. .. _class_CPUParticles3D_property_radial_accel_min:
  902. .. rst-class:: classref-property
  903. :ref:`float<class_float>` **radial_accel_min** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_radial_accel_min>`
  904. .. rst-class:: classref-property-setget
  905. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  906. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  907. Minimum radial acceleration.
  908. .. rst-class:: classref-item-separator
  909. ----
  910. .. _class_CPUParticles3D_property_randomness:
  911. .. rst-class:: classref-property
  912. :ref:`float<class_float>` **randomness** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_randomness>`
  913. .. rst-class:: classref-property-setget
  914. - |void| **set_randomness_ratio**\ (\ value\: :ref:`float<class_float>`\ )
  915. - :ref:`float<class_float>` **get_randomness_ratio**\ (\ )
  916. Emission lifetime randomness ratio.
  917. .. rst-class:: classref-item-separator
  918. ----
  919. .. _class_CPUParticles3D_property_scale_amount_curve:
  920. .. rst-class:: classref-property
  921. :ref:`Curve<class_Curve>` **scale_amount_curve** :ref:`🔗<class_CPUParticles3D_property_scale_amount_curve>`
  922. .. rst-class:: classref-property-setget
  923. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  924. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  925. Each particle's scale will vary along this :ref:`Curve<class_Curve>`.
  926. .. rst-class:: classref-item-separator
  927. ----
  928. .. _class_CPUParticles3D_property_scale_amount_max:
  929. .. rst-class:: classref-property
  930. :ref:`float<class_float>` **scale_amount_max** = ``1.0`` :ref:`🔗<class_CPUParticles3D_property_scale_amount_max>`
  931. .. rst-class:: classref-property-setget
  932. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  933. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  934. Maximum scale.
  935. .. rst-class:: classref-item-separator
  936. ----
  937. .. _class_CPUParticles3D_property_scale_amount_min:
  938. .. rst-class:: classref-property
  939. :ref:`float<class_float>` **scale_amount_min** = ``1.0`` :ref:`🔗<class_CPUParticles3D_property_scale_amount_min>`
  940. .. rst-class:: classref-property-setget
  941. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  942. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  943. Minimum scale.
  944. .. rst-class:: classref-item-separator
  945. ----
  946. .. _class_CPUParticles3D_property_scale_curve_x:
  947. .. rst-class:: classref-property
  948. :ref:`Curve<class_Curve>` **scale_curve_x** :ref:`🔗<class_CPUParticles3D_property_scale_curve_x>`
  949. .. rst-class:: classref-property-setget
  950. - |void| **set_scale_curve_x**\ (\ value\: :ref:`Curve<class_Curve>`\ )
  951. - :ref:`Curve<class_Curve>` **get_scale_curve_x**\ (\ )
  952. Curve for the scale over life, along the x axis.
  953. .. rst-class:: classref-item-separator
  954. ----
  955. .. _class_CPUParticles3D_property_scale_curve_y:
  956. .. rst-class:: classref-property
  957. :ref:`Curve<class_Curve>` **scale_curve_y** :ref:`🔗<class_CPUParticles3D_property_scale_curve_y>`
  958. .. rst-class:: classref-property-setget
  959. - |void| **set_scale_curve_y**\ (\ value\: :ref:`Curve<class_Curve>`\ )
  960. - :ref:`Curve<class_Curve>` **get_scale_curve_y**\ (\ )
  961. Curve for the scale over life, along the y axis.
  962. .. rst-class:: classref-item-separator
  963. ----
  964. .. _class_CPUParticles3D_property_scale_curve_z:
  965. .. rst-class:: classref-property
  966. :ref:`Curve<class_Curve>` **scale_curve_z** :ref:`🔗<class_CPUParticles3D_property_scale_curve_z>`
  967. .. rst-class:: classref-property-setget
  968. - |void| **set_scale_curve_z**\ (\ value\: :ref:`Curve<class_Curve>`\ )
  969. - :ref:`Curve<class_Curve>` **get_scale_curve_z**\ (\ )
  970. Curve for the scale over life, along the z axis.
  971. .. rst-class:: classref-item-separator
  972. ----
  973. .. _class_CPUParticles3D_property_speed_scale:
  974. .. rst-class:: classref-property
  975. :ref:`float<class_float>` **speed_scale** = ``1.0`` :ref:`🔗<class_CPUParticles3D_property_speed_scale>`
  976. .. rst-class:: classref-property-setget
  977. - |void| **set_speed_scale**\ (\ value\: :ref:`float<class_float>`\ )
  978. - :ref:`float<class_float>` **get_speed_scale**\ (\ )
  979. Particle system's running speed scaling ratio. A value of ``0`` can be used to pause the particles.
  980. .. rst-class:: classref-item-separator
  981. ----
  982. .. _class_CPUParticles3D_property_split_scale:
  983. .. rst-class:: classref-property
  984. :ref:`bool<class_bool>` **split_scale** = ``false`` :ref:`🔗<class_CPUParticles3D_property_split_scale>`
  985. .. rst-class:: classref-property-setget
  986. - |void| **set_split_scale**\ (\ value\: :ref:`bool<class_bool>`\ )
  987. - :ref:`bool<class_bool>` **get_split_scale**\ (\ )
  988. If set to ``true``, three different scale curves can be specified, one per scale axis.
  989. .. rst-class:: classref-item-separator
  990. ----
  991. .. _class_CPUParticles3D_property_spread:
  992. .. rst-class:: classref-property
  993. :ref:`float<class_float>` **spread** = ``45.0`` :ref:`🔗<class_CPUParticles3D_property_spread>`
  994. .. rst-class:: classref-property-setget
  995. - |void| **set_spread**\ (\ value\: :ref:`float<class_float>`\ )
  996. - :ref:`float<class_float>` **get_spread**\ (\ )
  997. Each particle's initial direction range from ``+spread`` to ``-spread`` degrees. Applied to X/Z plane and Y/Z planes.
  998. .. rst-class:: classref-item-separator
  999. ----
  1000. .. _class_CPUParticles3D_property_tangential_accel_curve:
  1001. .. rst-class:: classref-property
  1002. :ref:`Curve<class_Curve>` **tangential_accel_curve** :ref:`🔗<class_CPUParticles3D_property_tangential_accel_curve>`
  1003. .. rst-class:: classref-property-setget
  1004. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  1005. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  1006. Each particle's tangential acceleration will vary along this :ref:`Curve<class_Curve>`.
  1007. .. rst-class:: classref-item-separator
  1008. ----
  1009. .. _class_CPUParticles3D_property_tangential_accel_max:
  1010. .. rst-class:: classref-property
  1011. :ref:`float<class_float>` **tangential_accel_max** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_tangential_accel_max>`
  1012. .. rst-class:: classref-property-setget
  1013. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  1014. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  1015. Maximum tangent acceleration.
  1016. .. rst-class:: classref-item-separator
  1017. ----
  1018. .. _class_CPUParticles3D_property_tangential_accel_min:
  1019. .. rst-class:: classref-property
  1020. :ref:`float<class_float>` **tangential_accel_min** = ``0.0`` :ref:`🔗<class_CPUParticles3D_property_tangential_accel_min>`
  1021. .. rst-class:: classref-property-setget
  1022. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ )
  1023. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const|
  1024. Minimum tangent acceleration.
  1025. .. rst-class:: classref-item-separator
  1026. ----
  1027. .. _class_CPUParticles3D_property_visibility_aabb:
  1028. .. rst-class:: classref-property
  1029. :ref:`AABB<class_AABB>` **visibility_aabb** = ``AABB(0, 0, 0, 0, 0, 0)`` :ref:`🔗<class_CPUParticles3D_property_visibility_aabb>`
  1030. .. rst-class:: classref-property-setget
  1031. - |void| **set_visibility_aabb**\ (\ value\: :ref:`AABB<class_AABB>`\ )
  1032. - :ref:`AABB<class_AABB>` **get_visibility_aabb**\ (\ )
  1033. The :ref:`AABB<class_AABB>` that determines the node's region which needs to be visible on screen for the particle system to be active.
  1034. Grow the box if particles suddenly appear/disappear when the node enters/exits the screen. The :ref:`AABB<class_AABB>` can be grown via code or with the **Particles → Generate AABB** editor tool.
  1035. .. rst-class:: classref-section-separator
  1036. ----
  1037. .. rst-class:: classref-descriptions-group
  1038. Method Descriptions
  1039. -------------------
  1040. .. _class_CPUParticles3D_method_capture_aabb:
  1041. .. rst-class:: classref-method
  1042. :ref:`AABB<class_AABB>` **capture_aabb**\ (\ ) |const| :ref:`🔗<class_CPUParticles3D_method_capture_aabb>`
  1043. Returns the axis-aligned bounding box that contains all the particles that are active in the current frame.
  1044. .. rst-class:: classref-item-separator
  1045. ----
  1046. .. _class_CPUParticles3D_method_convert_from_particles:
  1047. .. rst-class:: classref-method
  1048. |void| **convert_from_particles**\ (\ particles\: :ref:`Node<class_Node>`\ ) :ref:`🔗<class_CPUParticles3D_method_convert_from_particles>`
  1049. Sets this node's properties to match a given :ref:`GPUParticles3D<class_GPUParticles3D>` node with an assigned :ref:`ParticleProcessMaterial<class_ParticleProcessMaterial>`.
  1050. .. rst-class:: classref-item-separator
  1051. ----
  1052. .. _class_CPUParticles3D_method_get_param_curve:
  1053. .. rst-class:: classref-method
  1054. :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const| :ref:`🔗<class_CPUParticles3D_method_get_param_curve>`
  1055. Returns the :ref:`Curve<class_Curve>` of the parameter specified by :ref:`Parameter<enum_CPUParticles3D_Parameter>`.
  1056. .. rst-class:: classref-item-separator
  1057. ----
  1058. .. _class_CPUParticles3D_method_get_param_max:
  1059. .. rst-class:: classref-method
  1060. :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const| :ref:`🔗<class_CPUParticles3D_method_get_param_max>`
  1061. Returns the maximum value range for the given parameter.
  1062. .. rst-class:: classref-item-separator
  1063. ----
  1064. .. _class_CPUParticles3D_method_get_param_min:
  1065. .. rst-class:: classref-method
  1066. :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`\ ) |const| :ref:`🔗<class_CPUParticles3D_method_get_param_min>`
  1067. Returns the minimum value range for the given parameter.
  1068. .. rst-class:: classref-item-separator
  1069. ----
  1070. .. _class_CPUParticles3D_method_get_particle_flag:
  1071. .. rst-class:: classref-method
  1072. :ref:`bool<class_bool>` **get_particle_flag**\ (\ particle_flag\: :ref:`ParticleFlags<enum_CPUParticles3D_ParticleFlags>`\ ) |const| :ref:`🔗<class_CPUParticles3D_method_get_particle_flag>`
  1073. Returns the enabled state of the given particle flag (see :ref:`ParticleFlags<enum_CPUParticles3D_ParticleFlags>` for options).
  1074. .. rst-class:: classref-item-separator
  1075. ----
  1076. .. _class_CPUParticles3D_method_restart:
  1077. .. rst-class:: classref-method
  1078. |void| **restart**\ (\ ) :ref:`🔗<class_CPUParticles3D_method_restart>`
  1079. Restarts the particle emitter.
  1080. .. rst-class:: classref-item-separator
  1081. ----
  1082. .. _class_CPUParticles3D_method_set_param_curve:
  1083. .. rst-class:: classref-method
  1084. |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ ) :ref:`🔗<class_CPUParticles3D_method_set_param_curve>`
  1085. Sets the :ref:`Curve<class_Curve>` of the parameter specified by :ref:`Parameter<enum_CPUParticles3D_Parameter>`.
  1086. .. rst-class:: classref-item-separator
  1087. ----
  1088. .. _class_CPUParticles3D_method_set_param_max:
  1089. .. rst-class:: classref-method
  1090. |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ ) :ref:`🔗<class_CPUParticles3D_method_set_param_max>`
  1091. Sets the maximum value for the given parameter.
  1092. .. rst-class:: classref-item-separator
  1093. ----
  1094. .. _class_CPUParticles3D_method_set_param_min:
  1095. .. rst-class:: classref-method
  1096. |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles3D_Parameter>`, value\: :ref:`float<class_float>`\ ) :ref:`🔗<class_CPUParticles3D_method_set_param_min>`
  1097. Sets the minimum value for the given parameter.
  1098. .. rst-class:: classref-item-separator
  1099. ----
  1100. .. _class_CPUParticles3D_method_set_particle_flag:
  1101. .. rst-class:: classref-method
  1102. |void| **set_particle_flag**\ (\ particle_flag\: :ref:`ParticleFlags<enum_CPUParticles3D_ParticleFlags>`, enable\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_CPUParticles3D_method_set_particle_flag>`
  1103. Enables or disables the given particle flag (see :ref:`ParticleFlags<enum_CPUParticles3D_ParticleFlags>` for options).
  1104. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  1105. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  1106. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  1107. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  1108. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  1109. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  1110. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  1111. .. |void| replace:: :abbr:`void (No return value.)`