class_cpuparticles3d.rst 99 KB

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