class_cpuparticles3d.rst 85 KB

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