class_cpuparticles3d.rst 98 KB

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