class_cpuparticles3d.rst 85 KB

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