class_cpuparticles3d.rst 73 KB

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