class_cpuparticles2d.rst 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the CPUParticles2D.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_CPUParticles2D:
  6. CPUParticles2D
  7. ==============
  8. **Inherits:** :ref:`Node2D<class_Node2D>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. CPU-based 2D particle emitter.
  13. Properties
  14. ----------
  15. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  16. | :ref:`int<class_int>` | :ref:`amount<class_CPUParticles2D_property_amount>` |
  17. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  18. | :ref:`float<class_float>` | :ref:`angle<class_CPUParticles2D_property_angle>` |
  19. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  20. | :ref:`Curve<class_Curve>` | :ref:`angle_curve<class_CPUParticles2D_property_angle_curve>` |
  21. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  22. | :ref:`float<class_float>` | :ref:`angle_random<class_CPUParticles2D_property_angle_random>` |
  23. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  24. | :ref:`float<class_float>` | :ref:`angular_velocity<class_CPUParticles2D_property_angular_velocity>` |
  25. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  26. | :ref:`Curve<class_Curve>` | :ref:`angular_velocity_curve<class_CPUParticles2D_property_angular_velocity_curve>` |
  27. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  28. | :ref:`float<class_float>` | :ref:`angular_velocity_random<class_CPUParticles2D_property_angular_velocity_random>` |
  29. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  30. | :ref:`float<class_float>` | :ref:`anim_offset<class_CPUParticles2D_property_anim_offset>` |
  31. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  32. | :ref:`Curve<class_Curve>` | :ref:`anim_offset_curve<class_CPUParticles2D_property_anim_offset_curve>` |
  33. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  34. | :ref:`float<class_float>` | :ref:`anim_offset_random<class_CPUParticles2D_property_anim_offset_random>` |
  35. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  36. | :ref:`float<class_float>` | :ref:`anim_speed<class_CPUParticles2D_property_anim_speed>` |
  37. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  38. | :ref:`Curve<class_Curve>` | :ref:`anim_speed_curve<class_CPUParticles2D_property_anim_speed_curve>` |
  39. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  40. | :ref:`float<class_float>` | :ref:`anim_speed_random<class_CPUParticles2D_property_anim_speed_random>` |
  41. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  42. | :ref:`Color<class_Color>` | :ref:`color<class_CPUParticles2D_property_color>` |
  43. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  44. | :ref:`Gradient<class_Gradient>` | :ref:`color_ramp<class_CPUParticles2D_property_color_ramp>` |
  45. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  46. | :ref:`float<class_float>` | :ref:`damping<class_CPUParticles2D_property_damping>` |
  47. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  48. | :ref:`Curve<class_Curve>` | :ref:`damping_curve<class_CPUParticles2D_property_damping_curve>` |
  49. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  50. | :ref:`float<class_float>` | :ref:`damping_random<class_CPUParticles2D_property_damping_random>` |
  51. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  52. | :ref:`DrawOrder<enum_CPUParticles2D_DrawOrder>` | :ref:`draw_order<class_CPUParticles2D_property_draw_order>` |
  53. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  54. | :ref:`PoolColorArray<class_PoolColorArray>` | :ref:`emission_colors<class_CPUParticles2D_property_emission_colors>` |
  55. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  56. | :ref:`PoolVector2Array<class_PoolVector2Array>` | :ref:`emission_normals<class_CPUParticles2D_property_emission_normals>` |
  57. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  58. | :ref:`PoolVector2Array<class_PoolVector2Array>` | :ref:`emission_points<class_CPUParticles2D_property_emission_points>` |
  59. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  60. | :ref:`Vector2<class_Vector2>` | :ref:`emission_rect_extents<class_CPUParticles2D_property_emission_rect_extents>` |
  61. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  62. | :ref:`EmissionShape<enum_CPUParticles2D_EmissionShape>` | :ref:`emission_shape<class_CPUParticles2D_property_emission_shape>` |
  63. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  64. | :ref:`float<class_float>` | :ref:`emission_sphere_radius<class_CPUParticles2D_property_emission_sphere_radius>` |
  65. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  66. | :ref:`bool<class_bool>` | :ref:`emitting<class_CPUParticles2D_property_emitting>` |
  67. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  68. | :ref:`float<class_float>` | :ref:`explosiveness<class_CPUParticles2D_property_explosiveness>` |
  69. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  70. | :ref:`int<class_int>` | :ref:`fixed_fps<class_CPUParticles2D_property_fixed_fps>` |
  71. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  72. | :ref:`bool<class_bool>` | :ref:`flag_align_y<class_CPUParticles2D_property_flag_align_y>` |
  73. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  74. | :ref:`float<class_float>` | :ref:`flatness<class_CPUParticles2D_property_flatness>` |
  75. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  76. | :ref:`bool<class_bool>` | :ref:`fract_delta<class_CPUParticles2D_property_fract_delta>` |
  77. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  78. | :ref:`Vector2<class_Vector2>` | :ref:`gravity<class_CPUParticles2D_property_gravity>` |
  79. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  80. | :ref:`float<class_float>` | :ref:`hue_variation<class_CPUParticles2D_property_hue_variation>` |
  81. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  82. | :ref:`Curve<class_Curve>` | :ref:`hue_variation_curve<class_CPUParticles2D_property_hue_variation_curve>` |
  83. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  84. | :ref:`float<class_float>` | :ref:`hue_variation_random<class_CPUParticles2D_property_hue_variation_random>` |
  85. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  86. | :ref:`float<class_float>` | :ref:`initial_velocity<class_CPUParticles2D_property_initial_velocity>` |
  87. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  88. | :ref:`float<class_float>` | :ref:`initial_velocity_random<class_CPUParticles2D_property_initial_velocity_random>` |
  89. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  90. | :ref:`float<class_float>` | :ref:`lifetime<class_CPUParticles2D_property_lifetime>` |
  91. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  92. | :ref:`float<class_float>` | :ref:`linear_accel<class_CPUParticles2D_property_linear_accel>` |
  93. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  94. | :ref:`Curve<class_Curve>` | :ref:`linear_accel_curve<class_CPUParticles2D_property_linear_accel_curve>` |
  95. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  96. | :ref:`float<class_float>` | :ref:`linear_accel_random<class_CPUParticles2D_property_linear_accel_random>` |
  97. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  98. | :ref:`bool<class_bool>` | :ref:`local_coords<class_CPUParticles2D_property_local_coords>` |
  99. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  100. | :ref:`Texture<class_Texture>` | :ref:`normalmap<class_CPUParticles2D_property_normalmap>` |
  101. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  102. | :ref:`bool<class_bool>` | :ref:`one_shot<class_CPUParticles2D_property_one_shot>` |
  103. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  104. | :ref:`float<class_float>` | :ref:`preprocess<class_CPUParticles2D_property_preprocess>` |
  105. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  106. | :ref:`float<class_float>` | :ref:`radial_accel<class_CPUParticles2D_property_radial_accel>` |
  107. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  108. | :ref:`Curve<class_Curve>` | :ref:`radial_accel_curve<class_CPUParticles2D_property_radial_accel_curve>` |
  109. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  110. | :ref:`float<class_float>` | :ref:`radial_accel_random<class_CPUParticles2D_property_radial_accel_random>` |
  111. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  112. | :ref:`float<class_float>` | :ref:`randomness<class_CPUParticles2D_property_randomness>` |
  113. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  114. | :ref:`float<class_float>` | :ref:`scale_amount<class_CPUParticles2D_property_scale_amount>` |
  115. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  116. | :ref:`Curve<class_Curve>` | :ref:`scale_amount_curve<class_CPUParticles2D_property_scale_amount_curve>` |
  117. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  118. | :ref:`float<class_float>` | :ref:`scale_amount_random<class_CPUParticles2D_property_scale_amount_random>` |
  119. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  120. | :ref:`float<class_float>` | :ref:`speed_scale<class_CPUParticles2D_property_speed_scale>` |
  121. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  122. | :ref:`float<class_float>` | :ref:`spread<class_CPUParticles2D_property_spread>` |
  123. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  124. | :ref:`float<class_float>` | :ref:`tangential_accel<class_CPUParticles2D_property_tangential_accel>` |
  125. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  126. | :ref:`Curve<class_Curve>` | :ref:`tangential_accel_curve<class_CPUParticles2D_property_tangential_accel_curve>` |
  127. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  128. | :ref:`float<class_float>` | :ref:`tangential_accel_random<class_CPUParticles2D_property_tangential_accel_random>` |
  129. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  130. | :ref:`Texture<class_Texture>` | :ref:`texture<class_CPUParticles2D_property_texture>` |
  131. +---------------------------------------------------------+---------------------------------------------------------------------------------------+
  132. Methods
  133. -------
  134. +------+---------------------------------------------------------------------------------------------------------------------------------+
  135. | void | :ref:`convert_from_particles<class_CPUParticles2D_method_convert_from_particles>` **(** :ref:`Node<class_Node>` particles **)** |
  136. +------+---------------------------------------------------------------------------------------------------------------------------------+
  137. | void | :ref:`restart<class_CPUParticles2D_method_restart>` **(** **)** |
  138. +------+---------------------------------------------------------------------------------------------------------------------------------+
  139. Enumerations
  140. ------------
  141. .. _enum_CPUParticles2D_DrawOrder:
  142. .. _class_CPUParticles2D_constant_DRAW_ORDER_INDEX:
  143. .. _class_CPUParticles2D_constant_DRAW_ORDER_LIFETIME:
  144. enum **DrawOrder**:
  145. - **DRAW_ORDER_INDEX** = **0** --- Particles are drawn in the order emitted.
  146. - **DRAW_ORDER_LIFETIME** = **1** --- Particles are drawn in order of remaining lifetime.
  147. ----
  148. .. _enum_CPUParticles2D_Parameter:
  149. .. _class_CPUParticles2D_constant_PARAM_INITIAL_LINEAR_VELOCITY:
  150. .. _class_CPUParticles2D_constant_PARAM_ANGULAR_VELOCITY:
  151. .. _class_CPUParticles2D_constant_PARAM_ORBIT_VELOCITY:
  152. .. _class_CPUParticles2D_constant_PARAM_LINEAR_ACCEL:
  153. .. _class_CPUParticles2D_constant_PARAM_RADIAL_ACCEL:
  154. .. _class_CPUParticles2D_constant_PARAM_TANGENTIAL_ACCEL:
  155. .. _class_CPUParticles2D_constant_PARAM_DAMPING:
  156. .. _class_CPUParticles2D_constant_PARAM_ANGLE:
  157. .. _class_CPUParticles2D_constant_PARAM_SCALE:
  158. .. _class_CPUParticles2D_constant_PARAM_HUE_VARIATION:
  159. .. _class_CPUParticles2D_constant_PARAM_ANIM_SPEED:
  160. .. _class_CPUParticles2D_constant_PARAM_ANIM_OFFSET:
  161. .. _class_CPUParticles2D_constant_PARAM_MAX:
  162. enum **Parameter**:
  163. - **PARAM_INITIAL_LINEAR_VELOCITY** = **0** --- Use with :ref:`set_param<class_CPUParticles2D_method_set_param>`, :ref:`set_param_randomness<class_CPUParticles2D_method_set_param_randomness>`, and :ref:`set_param_texture<class_CPUParticles2D_method_set_param_texture>` to set initial velocity properties.
  164. - **PARAM_ANGULAR_VELOCITY** = **1** --- Use with :ref:`set_param<class_CPUParticles2D_method_set_param>`, :ref:`set_param_randomness<class_CPUParticles2D_method_set_param_randomness>`, and :ref:`set_param_texture<class_CPUParticles2D_method_set_param_texture>` to set angular velocity properties.
  165. - **PARAM_ORBIT_VELOCITY** = **2** --- Use with :ref:`set_param<class_CPUParticles2D_method_set_param>`, :ref:`set_param_randomness<class_CPUParticles2D_method_set_param_randomness>`, and :ref:`set_param_texture<class_CPUParticles2D_method_set_param_texture>` to set orbital velocity properties.
  166. - **PARAM_LINEAR_ACCEL** = **3** --- Use with :ref:`set_param<class_CPUParticles2D_method_set_param>`, :ref:`set_param_randomness<class_CPUParticles2D_method_set_param_randomness>`, and :ref:`set_param_texture<class_CPUParticles2D_method_set_param_texture>` to set linear acceleration properties.
  167. - **PARAM_RADIAL_ACCEL** = **4** --- Use with :ref:`set_param<class_CPUParticles2D_method_set_param>`, :ref:`set_param_randomness<class_CPUParticles2D_method_set_param_randomness>`, and :ref:`set_param_texture<class_CPUParticles2D_method_set_param_texture>` to set radial acceleration properties.
  168. - **PARAM_TANGENTIAL_ACCEL** = **5** --- Use with :ref:`set_param<class_CPUParticles2D_method_set_param>`, :ref:`set_param_randomness<class_CPUParticles2D_method_set_param_randomness>`, and :ref:`set_param_texture<class_CPUParticles2D_method_set_param_texture>` to set tangential acceleration properties.
  169. - **PARAM_DAMPING** = **6** --- Use with :ref:`set_param<class_CPUParticles2D_method_set_param>`, :ref:`set_param_randomness<class_CPUParticles2D_method_set_param_randomness>`, and :ref:`set_param_texture<class_CPUParticles2D_method_set_param_texture>` to set damping properties.
  170. - **PARAM_ANGLE** = **7** --- Use with :ref:`set_param<class_CPUParticles2D_method_set_param>`, :ref:`set_param_randomness<class_CPUParticles2D_method_set_param_randomness>`, and :ref:`set_param_texture<class_CPUParticles2D_method_set_param_texture>` to set angle properties.
  171. - **PARAM_SCALE** = **8** --- Use with :ref:`set_param<class_CPUParticles2D_method_set_param>`, :ref:`set_param_randomness<class_CPUParticles2D_method_set_param_randomness>`, and :ref:`set_param_texture<class_CPUParticles2D_method_set_param_texture>` to set scale properties.
  172. - **PARAM_HUE_VARIATION** = **9** --- Use with :ref:`set_param<class_CPUParticles2D_method_set_param>`, :ref:`set_param_randomness<class_CPUParticles2D_method_set_param_randomness>`, and :ref:`set_param_texture<class_CPUParticles2D_method_set_param_texture>` to set hue variation properties.
  173. - **PARAM_ANIM_SPEED** = **10** --- Use with :ref:`set_param<class_CPUParticles2D_method_set_param>`, :ref:`set_param_randomness<class_CPUParticles2D_method_set_param_randomness>`, and :ref:`set_param_texture<class_CPUParticles2D_method_set_param_texture>` to set animation speed properties.
  174. - **PARAM_ANIM_OFFSET** = **11** --- Use with :ref:`set_param<class_CPUParticles2D_method_set_param>`, :ref:`set_param_randomness<class_CPUParticles2D_method_set_param_randomness>`, and :ref:`set_param_texture<class_CPUParticles2D_method_set_param_texture>` to set animation offset properties.
  175. - **PARAM_MAX** = **12** --- Represents the size of the :ref:`Parameter<enum_CPUParticles2D_Parameter>` enum.
  176. ----
  177. .. _enum_CPUParticles2D_Flags:
  178. .. _class_CPUParticles2D_constant_FLAG_ALIGN_Y_TO_VELOCITY:
  179. .. _class_CPUParticles2D_constant_FLAG_MAX:
  180. enum **Flags**:
  181. - **FLAG_ALIGN_Y_TO_VELOCITY** = **0** --- Use with :ref:`set_flag<class_CPUParticles2D_method_set_flag>` to set :ref:`flag_align_y<class_CPUParticles2D_property_flag_align_y>`.
  182. - **FLAG_MAX** = **1**
  183. ----
  184. .. _enum_CPUParticles2D_EmissionShape:
  185. .. _class_CPUParticles2D_constant_EMISSION_SHAPE_POINT:
  186. .. _class_CPUParticles2D_constant_EMISSION_SHAPE_CIRCLE:
  187. .. _class_CPUParticles2D_constant_EMISSION_SHAPE_RECTANGLE:
  188. .. _class_CPUParticles2D_constant_EMISSION_SHAPE_POINTS:
  189. .. _class_CPUParticles2D_constant_EMISSION_SHAPE_DIRECTED_POINTS:
  190. enum **EmissionShape**:
  191. - **EMISSION_SHAPE_POINT** = **0** --- All particles will be emitted from a single point.
  192. - **EMISSION_SHAPE_CIRCLE** = **1** --- Particles will be emitted on the perimeter of a circle.
  193. - **EMISSION_SHAPE_RECTANGLE** = **2** --- Particles will be emitted in the area of a rectangle.
  194. - **EMISSION_SHAPE_POINTS** = **3** --- Particles will be emitted at a position chosen randomly among :ref:`emission_points<class_CPUParticles2D_property_emission_points>`. Particle color will be modulated by :ref:`emission_colors<class_CPUParticles2D_property_emission_colors>`.
  195. - **EMISSION_SHAPE_DIRECTED_POINTS** = **4** --- Particles will be emitted at a position chosen randomly among :ref:`emission_points<class_CPUParticles2D_property_emission_points>`. Particle velocity and rotation will be set based on :ref:`emission_normals<class_CPUParticles2D_property_emission_normals>`. Particle color will be modulated by :ref:`emission_colors<class_CPUParticles2D_property_emission_colors>`.
  196. Description
  197. -----------
  198. CPU-based 2D particle node used to create a variety of particle systems and effects.
  199. See also :ref:`Particles2D<class_Particles2D>`, which provides the same functionality with hardware acceleration, but may not run on older devices.
  200. Tutorials
  201. ---------
  202. - :doc:`../tutorials/2d/particle_systems_2d`
  203. Property Descriptions
  204. ---------------------
  205. .. _class_CPUParticles2D_property_amount:
  206. - :ref:`int<class_int>` **amount**
  207. +----------+-------------------+
  208. | *Setter* | set_amount(value) |
  209. +----------+-------------------+
  210. | *Getter* | get_amount() |
  211. +----------+-------------------+
  212. Number of particles emitted in one emission cycle.
  213. ----
  214. .. _class_CPUParticles2D_property_angle:
  215. - :ref:`float<class_float>` **angle**
  216. +----------+------------------+
  217. | *Setter* | set_param(value) |
  218. +----------+------------------+
  219. | *Getter* | get_param() |
  220. +----------+------------------+
  221. Initial rotation applied to each particle, in degrees.
  222. ----
  223. .. _class_CPUParticles2D_property_angle_curve:
  224. - :ref:`Curve<class_Curve>` **angle_curve**
  225. +----------+------------------------+
  226. | *Setter* | set_param_curve(value) |
  227. +----------+------------------------+
  228. | *Getter* | get_param_curve() |
  229. +----------+------------------------+
  230. Each particle's rotation will be animated along this :ref:`Curve<class_Curve>`.
  231. ----
  232. .. _class_CPUParticles2D_property_angle_random:
  233. - :ref:`float<class_float>` **angle_random**
  234. +----------+-----------------------------+
  235. | *Setter* | set_param_randomness(value) |
  236. +----------+-----------------------------+
  237. | *Getter* | get_param_randomness() |
  238. +----------+-----------------------------+
  239. Rotation randomness ratio. Default value: ``0``.
  240. ----
  241. .. _class_CPUParticles2D_property_angular_velocity:
  242. - :ref:`float<class_float>` **angular_velocity**
  243. +----------+------------------+
  244. | *Setter* | set_param(value) |
  245. +----------+------------------+
  246. | *Getter* | get_param() |
  247. +----------+------------------+
  248. Initial angular velocity applied to each particle. Sets the speed of rotation of the particle.
  249. ----
  250. .. _class_CPUParticles2D_property_angular_velocity_curve:
  251. - :ref:`Curve<class_Curve>` **angular_velocity_curve**
  252. +----------+------------------------+
  253. | *Setter* | set_param_curve(value) |
  254. +----------+------------------------+
  255. | *Getter* | get_param_curve() |
  256. +----------+------------------------+
  257. Each particle's angular velocity will vary along this :ref:`Curve<class_Curve>`.
  258. ----
  259. .. _class_CPUParticles2D_property_angular_velocity_random:
  260. - :ref:`float<class_float>` **angular_velocity_random**
  261. +----------+-----------------------------+
  262. | *Setter* | set_param_randomness(value) |
  263. +----------+-----------------------------+
  264. | *Getter* | get_param_randomness() |
  265. +----------+-----------------------------+
  266. Angular velocity randomness ratio. Default value: ``0``.
  267. ----
  268. .. _class_CPUParticles2D_property_anim_offset:
  269. - :ref:`float<class_float>` **anim_offset**
  270. +----------+------------------+
  271. | *Setter* | set_param(value) |
  272. +----------+------------------+
  273. | *Getter* | get_param() |
  274. +----------+------------------+
  275. Particle animation offset.
  276. ----
  277. .. _class_CPUParticles2D_property_anim_offset_curve:
  278. - :ref:`Curve<class_Curve>` **anim_offset_curve**
  279. +----------+------------------------+
  280. | *Setter* | set_param_curve(value) |
  281. +----------+------------------------+
  282. | *Getter* | get_param_curve() |
  283. +----------+------------------------+
  284. Each particle's animation offset will vary along this :ref:`Curve<class_Curve>`.
  285. ----
  286. .. _class_CPUParticles2D_property_anim_offset_random:
  287. - :ref:`float<class_float>` **anim_offset_random**
  288. +----------+-----------------------------+
  289. | *Setter* | set_param_randomness(value) |
  290. +----------+-----------------------------+
  291. | *Getter* | get_param_randomness() |
  292. +----------+-----------------------------+
  293. Animation offset randomness ratio. Default value: ``0``.
  294. ----
  295. .. _class_CPUParticles2D_property_anim_speed:
  296. - :ref:`float<class_float>` **anim_speed**
  297. +----------+------------------+
  298. | *Setter* | set_param(value) |
  299. +----------+------------------+
  300. | *Getter* | get_param() |
  301. +----------+------------------+
  302. Particle animation speed.
  303. ----
  304. .. _class_CPUParticles2D_property_anim_speed_curve:
  305. - :ref:`Curve<class_Curve>` **anim_speed_curve**
  306. +----------+------------------------+
  307. | *Setter* | set_param_curve(value) |
  308. +----------+------------------------+
  309. | *Getter* | get_param_curve() |
  310. +----------+------------------------+
  311. Each particle's animation speed will vary along this :ref:`Curve<class_Curve>`.
  312. ----
  313. .. _class_CPUParticles2D_property_anim_speed_random:
  314. - :ref:`float<class_float>` **anim_speed_random**
  315. +----------+-----------------------------+
  316. | *Setter* | set_param_randomness(value) |
  317. +----------+-----------------------------+
  318. | *Getter* | get_param_randomness() |
  319. +----------+-----------------------------+
  320. Animation speed randomness ratio. Default value: ``0``.
  321. ----
  322. .. _class_CPUParticles2D_property_color:
  323. - :ref:`Color<class_Color>` **color**
  324. +----------+------------------+
  325. | *Setter* | set_color(value) |
  326. +----------+------------------+
  327. | *Getter* | get_color() |
  328. +----------+------------------+
  329. Each particle's initial color. If :ref:`texture<class_CPUParticles2D_property_texture>` is defined, it will be multiplied by this color.
  330. ----
  331. .. _class_CPUParticles2D_property_color_ramp:
  332. - :ref:`Gradient<class_Gradient>` **color_ramp**
  333. +----------+-----------------------+
  334. | *Setter* | set_color_ramp(value) |
  335. +----------+-----------------------+
  336. | *Getter* | get_color_ramp() |
  337. +----------+-----------------------+
  338. Each particle's color will vary along this :ref:`Gradient<class_Gradient>`.
  339. ----
  340. .. _class_CPUParticles2D_property_damping:
  341. - :ref:`float<class_float>` **damping**
  342. +----------+------------------+
  343. | *Setter* | set_param(value) |
  344. +----------+------------------+
  345. | *Getter* | get_param() |
  346. +----------+------------------+
  347. The rate at which particles lose velocity.
  348. ----
  349. .. _class_CPUParticles2D_property_damping_curve:
  350. - :ref:`Curve<class_Curve>` **damping_curve**
  351. +----------+------------------------+
  352. | *Setter* | set_param_curve(value) |
  353. +----------+------------------------+
  354. | *Getter* | get_param_curve() |
  355. +----------+------------------------+
  356. Damping will vary along this :ref:`Curve<class_Curve>`.
  357. ----
  358. .. _class_CPUParticles2D_property_damping_random:
  359. - :ref:`float<class_float>` **damping_random**
  360. +----------+-----------------------------+
  361. | *Setter* | set_param_randomness(value) |
  362. +----------+-----------------------------+
  363. | *Getter* | get_param_randomness() |
  364. +----------+-----------------------------+
  365. Damping randomness ratio. Default value: ``0``.
  366. ----
  367. .. _class_CPUParticles2D_property_draw_order:
  368. - :ref:`DrawOrder<enum_CPUParticles2D_DrawOrder>` **draw_order**
  369. +----------+-----------------------+
  370. | *Setter* | set_draw_order(value) |
  371. +----------+-----------------------+
  372. | *Getter* | get_draw_order() |
  373. +----------+-----------------------+
  374. Particle draw order. Uses :ref:`DrawOrder<enum_CPUParticles2D_DrawOrder>` values. Default value: :ref:`DRAW_ORDER_INDEX<class_CPUParticles2D_constant_DRAW_ORDER_INDEX>`.
  375. ----
  376. .. _class_CPUParticles2D_property_emission_colors:
  377. - :ref:`PoolColorArray<class_PoolColorArray>` **emission_colors**
  378. +----------+----------------------------+
  379. | *Setter* | set_emission_colors(value) |
  380. +----------+----------------------------+
  381. | *Getter* | get_emission_colors() |
  382. +----------+----------------------------+
  383. ----
  384. .. _class_CPUParticles2D_property_emission_normals:
  385. - :ref:`PoolVector2Array<class_PoolVector2Array>` **emission_normals**
  386. +----------+-----------------------------+
  387. | *Setter* | set_emission_normals(value) |
  388. +----------+-----------------------------+
  389. | *Getter* | get_emission_normals() |
  390. +----------+-----------------------------+
  391. ----
  392. .. _class_CPUParticles2D_property_emission_points:
  393. - :ref:`PoolVector2Array<class_PoolVector2Array>` **emission_points**
  394. +----------+----------------------------+
  395. | *Setter* | set_emission_points(value) |
  396. +----------+----------------------------+
  397. | *Getter* | get_emission_points() |
  398. +----------+----------------------------+
  399. ----
  400. .. _class_CPUParticles2D_property_emission_rect_extents:
  401. - :ref:`Vector2<class_Vector2>` **emission_rect_extents**
  402. +----------+----------------------------------+
  403. | *Setter* | set_emission_rect_extents(value) |
  404. +----------+----------------------------------+
  405. | *Getter* | get_emission_rect_extents() |
  406. +----------+----------------------------------+
  407. The rectangle's extents if :ref:`emission_shape<class_CPUParticles2D_property_emission_shape>` is set to :ref:`EMISSION_SHAPE_RECTANGLE<class_CPUParticles2D_constant_EMISSION_SHAPE_RECTANGLE>`.
  408. ----
  409. .. _class_CPUParticles2D_property_emission_shape:
  410. - :ref:`EmissionShape<enum_CPUParticles2D_EmissionShape>` **emission_shape**
  411. +----------+---------------------------+
  412. | *Setter* | set_emission_shape(value) |
  413. +----------+---------------------------+
  414. | *Getter* | get_emission_shape() |
  415. +----------+---------------------------+
  416. Particles will be emitted inside this region. Use :ref:`EmissionShape<enum_CPUParticles2D_EmissionShape>` for values. Default value: :ref:`EMISSION_SHAPE_POINT<class_CPUParticles2D_constant_EMISSION_SHAPE_POINT>`.
  417. ----
  418. .. _class_CPUParticles2D_property_emission_sphere_radius:
  419. - :ref:`float<class_float>` **emission_sphere_radius**
  420. +----------+-----------------------------------+
  421. | *Setter* | set_emission_sphere_radius(value) |
  422. +----------+-----------------------------------+
  423. | *Getter* | get_emission_sphere_radius() |
  424. +----------+-----------------------------------+
  425. The circle's radius if :ref:`emission_shape<class_CPUParticles2D_property_emission_shape>` is set to :ref:`EMISSION_SHAPE_CIRCLE<class_CPUParticles2D_constant_EMISSION_SHAPE_CIRCLE>`.
  426. ----
  427. .. _class_CPUParticles2D_property_emitting:
  428. - :ref:`bool<class_bool>` **emitting**
  429. +----------+---------------------+
  430. | *Setter* | set_emitting(value) |
  431. +----------+---------------------+
  432. | *Getter* | is_emitting() |
  433. +----------+---------------------+
  434. If ``true``, particles are being emitted. Default value: ``true``.
  435. ----
  436. .. _class_CPUParticles2D_property_explosiveness:
  437. - :ref:`float<class_float>` **explosiveness**
  438. +----------+--------------------------------+
  439. | *Setter* | set_explosiveness_ratio(value) |
  440. +----------+--------------------------------+
  441. | *Getter* | get_explosiveness_ratio() |
  442. +----------+--------------------------------+
  443. 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. Default value: ``0``.
  444. ----
  445. .. _class_CPUParticles2D_property_fixed_fps:
  446. - :ref:`int<class_int>` **fixed_fps**
  447. +----------+----------------------+
  448. | *Setter* | set_fixed_fps(value) |
  449. +----------+----------------------+
  450. | *Getter* | get_fixed_fps() |
  451. +----------+----------------------+
  452. The particle system's frame rate is fixed to a value. For instance, changing the value to 2 will make the particles render at 2 frames per second. Note this does not slow down the simulation of the particle system itself.
  453. ----
  454. .. _class_CPUParticles2D_property_flag_align_y:
  455. - :ref:`bool<class_bool>` **flag_align_y**
  456. +----------+--------------------------+
  457. | *Setter* | set_particle_flag(value) |
  458. +----------+--------------------------+
  459. | *Getter* | get_particle_flag() |
  460. +----------+--------------------------+
  461. Align y-axis of particle with the direction of its velocity.
  462. ----
  463. .. _class_CPUParticles2D_property_flatness:
  464. - :ref:`float<class_float>` **flatness**
  465. +----------+---------------------+
  466. | *Setter* | set_flatness(value) |
  467. +----------+---------------------+
  468. | *Getter* | get_flatness() |
  469. +----------+---------------------+
  470. ----
  471. .. _class_CPUParticles2D_property_fract_delta:
  472. - :ref:`bool<class_bool>` **fract_delta**
  473. +----------+-----------------------------+
  474. | *Setter* | set_fractional_delta(value) |
  475. +----------+-----------------------------+
  476. | *Getter* | get_fractional_delta() |
  477. +----------+-----------------------------+
  478. If ``true``, results in fractional delta calculation which has a smoother particles display effect. Default value: ``true``
  479. ----
  480. .. _class_CPUParticles2D_property_gravity:
  481. - :ref:`Vector2<class_Vector2>` **gravity**
  482. +----------+--------------------+
  483. | *Setter* | set_gravity(value) |
  484. +----------+--------------------+
  485. | *Getter* | get_gravity() |
  486. +----------+--------------------+
  487. Gravity applied to every particle. Default value: ``(0, 98)``.
  488. ----
  489. .. _class_CPUParticles2D_property_hue_variation:
  490. - :ref:`float<class_float>` **hue_variation**
  491. +----------+------------------+
  492. | *Setter* | set_param(value) |
  493. +----------+------------------+
  494. | *Getter* | get_param() |
  495. +----------+------------------+
  496. Initial hue variation applied to each particle.
  497. ----
  498. .. _class_CPUParticles2D_property_hue_variation_curve:
  499. - :ref:`Curve<class_Curve>` **hue_variation_curve**
  500. +----------+------------------------+
  501. | *Setter* | set_param_curve(value) |
  502. +----------+------------------------+
  503. | *Getter* | get_param_curve() |
  504. +----------+------------------------+
  505. Each particle's hue will vary along this :ref:`Curve<class_Curve>`.
  506. ----
  507. .. _class_CPUParticles2D_property_hue_variation_random:
  508. - :ref:`float<class_float>` **hue_variation_random**
  509. +----------+-----------------------------+
  510. | *Setter* | set_param_randomness(value) |
  511. +----------+-----------------------------+
  512. | *Getter* | get_param_randomness() |
  513. +----------+-----------------------------+
  514. Hue variation randomness ratio. Default value: ``0``.
  515. ----
  516. .. _class_CPUParticles2D_property_initial_velocity:
  517. - :ref:`float<class_float>` **initial_velocity**
  518. +----------+------------------+
  519. | *Setter* | set_param(value) |
  520. +----------+------------------+
  521. | *Getter* | get_param() |
  522. +----------+------------------+
  523. Initial velocity magnitude for each particle. Direction comes from :ref:`spread<class_CPUParticles2D_property_spread>` and the node's orientation.
  524. ----
  525. .. _class_CPUParticles2D_property_initial_velocity_random:
  526. - :ref:`float<class_float>` **initial_velocity_random**
  527. +----------+-----------------------------+
  528. | *Setter* | set_param_randomness(value) |
  529. +----------+-----------------------------+
  530. | *Getter* | get_param_randomness() |
  531. +----------+-----------------------------+
  532. Initial velocity randomness ratio. Default value: ``0``.
  533. ----
  534. .. _class_CPUParticles2D_property_lifetime:
  535. - :ref:`float<class_float>` **lifetime**
  536. +----------+---------------------+
  537. | *Setter* | set_lifetime(value) |
  538. +----------+---------------------+
  539. | *Getter* | get_lifetime() |
  540. +----------+---------------------+
  541. Amount of time each particle will exist. Default value: ``1``.
  542. ----
  543. .. _class_CPUParticles2D_property_linear_accel:
  544. - :ref:`float<class_float>` **linear_accel**
  545. +----------+------------------+
  546. | *Setter* | set_param(value) |
  547. +----------+------------------+
  548. | *Getter* | get_param() |
  549. +----------+------------------+
  550. Linear acceleration applied to each particle in the direction of motion.
  551. ----
  552. .. _class_CPUParticles2D_property_linear_accel_curve:
  553. - :ref:`Curve<class_Curve>` **linear_accel_curve**
  554. +----------+------------------------+
  555. | *Setter* | set_param_curve(value) |
  556. +----------+------------------------+
  557. | *Getter* | get_param_curve() |
  558. +----------+------------------------+
  559. Each particle's linear acceleration will vary along this :ref:`Curve<class_Curve>`.
  560. ----
  561. .. _class_CPUParticles2D_property_linear_accel_random:
  562. - :ref:`float<class_float>` **linear_accel_random**
  563. +----------+-----------------------------+
  564. | *Setter* | set_param_randomness(value) |
  565. +----------+-----------------------------+
  566. | *Getter* | get_param_randomness() |
  567. +----------+-----------------------------+
  568. Linear acceleration randomness ratio. Default value: ``0``.
  569. ----
  570. .. _class_CPUParticles2D_property_local_coords:
  571. - :ref:`bool<class_bool>` **local_coords**
  572. +----------+----------------------------------+
  573. | *Setter* | set_use_local_coordinates(value) |
  574. +----------+----------------------------------+
  575. | *Getter* | get_use_local_coordinates() |
  576. +----------+----------------------------------+
  577. If ``true``, particles use the parent node's coordinate space. If ``false``, they use global coordinates. Default value: ``true``.
  578. ----
  579. .. _class_CPUParticles2D_property_normalmap:
  580. - :ref:`Texture<class_Texture>` **normalmap**
  581. +----------+----------------------+
  582. | *Setter* | set_normalmap(value) |
  583. +----------+----------------------+
  584. | *Getter* | get_normalmap() |
  585. +----------+----------------------+
  586. Normal map to be used for the :ref:`texture<class_CPUParticles2D_property_texture>` property.
  587. ----
  588. .. _class_CPUParticles2D_property_one_shot:
  589. - :ref:`bool<class_bool>` **one_shot**
  590. +----------+---------------------+
  591. | *Setter* | set_one_shot(value) |
  592. +----------+---------------------+
  593. | *Getter* | get_one_shot() |
  594. +----------+---------------------+
  595. If ``true``, only one emission cycle occurs. If set ``true`` during a cycle, emission will stop at the cycle's end. Default value: ``false``.
  596. ----
  597. .. _class_CPUParticles2D_property_preprocess:
  598. - :ref:`float<class_float>` **preprocess**
  599. +----------+-----------------------------+
  600. | *Setter* | set_pre_process_time(value) |
  601. +----------+-----------------------------+
  602. | *Getter* | get_pre_process_time() |
  603. +----------+-----------------------------+
  604. Particle system starts as if it had already run for this many seconds.
  605. ----
  606. .. _class_CPUParticles2D_property_radial_accel:
  607. - :ref:`float<class_float>` **radial_accel**
  608. +----------+------------------+
  609. | *Setter* | set_param(value) |
  610. +----------+------------------+
  611. | *Getter* | get_param() |
  612. +----------+------------------+
  613. Radial acceleration applied to each particle. Makes particle accelerate away from origin.
  614. ----
  615. .. _class_CPUParticles2D_property_radial_accel_curve:
  616. - :ref:`Curve<class_Curve>` **radial_accel_curve**
  617. +----------+------------------------+
  618. | *Setter* | set_param_curve(value) |
  619. +----------+------------------------+
  620. | *Getter* | get_param_curve() |
  621. +----------+------------------------+
  622. Each particle's radial acceleration will vary along this :ref:`Curve<class_Curve>`.
  623. ----
  624. .. _class_CPUParticles2D_property_radial_accel_random:
  625. - :ref:`float<class_float>` **radial_accel_random**
  626. +----------+-----------------------------+
  627. | *Setter* | set_param_randomness(value) |
  628. +----------+-----------------------------+
  629. | *Getter* | get_param_randomness() |
  630. +----------+-----------------------------+
  631. Radial acceleration randomness ratio. Default value: ``0``.
  632. ----
  633. .. _class_CPUParticles2D_property_randomness:
  634. - :ref:`float<class_float>` **randomness**
  635. +----------+-----------------------------+
  636. | *Setter* | set_randomness_ratio(value) |
  637. +----------+-----------------------------+
  638. | *Getter* | get_randomness_ratio() |
  639. +----------+-----------------------------+
  640. Emission lifetime randomness ratio. Default value: ``0``.
  641. ----
  642. .. _class_CPUParticles2D_property_scale_amount:
  643. - :ref:`float<class_float>` **scale_amount**
  644. +----------+------------------+
  645. | *Setter* | set_param(value) |
  646. +----------+------------------+
  647. | *Getter* | get_param() |
  648. +----------+------------------+
  649. Initial scale applied to each particle.
  650. ----
  651. .. _class_CPUParticles2D_property_scale_amount_curve:
  652. - :ref:`Curve<class_Curve>` **scale_amount_curve**
  653. +----------+------------------------+
  654. | *Setter* | set_param_curve(value) |
  655. +----------+------------------------+
  656. | *Getter* | get_param_curve() |
  657. +----------+------------------------+
  658. Each particle's scale will vary along this :ref:`Curve<class_Curve>`.
  659. ----
  660. .. _class_CPUParticles2D_property_scale_amount_random:
  661. - :ref:`float<class_float>` **scale_amount_random**
  662. +----------+-----------------------------+
  663. | *Setter* | set_param_randomness(value) |
  664. +----------+-----------------------------+
  665. | *Getter* | get_param_randomness() |
  666. +----------+-----------------------------+
  667. Scale randomness ratio. Default value: ``0``.
  668. ----
  669. .. _class_CPUParticles2D_property_speed_scale:
  670. - :ref:`float<class_float>` **speed_scale**
  671. +----------+------------------------+
  672. | *Setter* | set_speed_scale(value) |
  673. +----------+------------------------+
  674. | *Getter* | get_speed_scale() |
  675. +----------+------------------------+
  676. Particle system's running speed scaling ratio. Default value: ``1``. A value of ``0`` can be used to pause the particles.
  677. ----
  678. .. _class_CPUParticles2D_property_spread:
  679. - :ref:`float<class_float>` **spread**
  680. +----------+-------------------+
  681. | *Setter* | set_spread(value) |
  682. +----------+-------------------+
  683. | *Getter* | get_spread() |
  684. +----------+-------------------+
  685. Each particle's initial direction range from ``+spread`` to ``-spread`` degrees. Default value: ``45``.
  686. ----
  687. .. _class_CPUParticles2D_property_tangential_accel:
  688. - :ref:`float<class_float>` **tangential_accel**
  689. +----------+------------------+
  690. | *Setter* | set_param(value) |
  691. +----------+------------------+
  692. | *Getter* | get_param() |
  693. +----------+------------------+
  694. Tangential acceleration applied to each particle. Tangential acceleration is perpendicular to the particle's velocity giving the particles a swirling motion.
  695. ----
  696. .. _class_CPUParticles2D_property_tangential_accel_curve:
  697. - :ref:`Curve<class_Curve>` **tangential_accel_curve**
  698. +----------+------------------------+
  699. | *Setter* | set_param_curve(value) |
  700. +----------+------------------------+
  701. | *Getter* | get_param_curve() |
  702. +----------+------------------------+
  703. Each particle's tangential acceleration will vary along this :ref:`Curve<class_Curve>`.
  704. ----
  705. .. _class_CPUParticles2D_property_tangential_accel_random:
  706. - :ref:`float<class_float>` **tangential_accel_random**
  707. +----------+-----------------------------+
  708. | *Setter* | set_param_randomness(value) |
  709. +----------+-----------------------------+
  710. | *Getter* | get_param_randomness() |
  711. +----------+-----------------------------+
  712. Tangential acceleration randomness ratio. Default value: ``0``.
  713. ----
  714. .. _class_CPUParticles2D_property_texture:
  715. - :ref:`Texture<class_Texture>` **texture**
  716. +----------+--------------------+
  717. | *Setter* | set_texture(value) |
  718. +----------+--------------------+
  719. | *Getter* | get_texture() |
  720. +----------+--------------------+
  721. Particle texture. If ``null`` particles will be squares.
  722. Method Descriptions
  723. -------------------
  724. .. _class_CPUParticles2D_method_convert_from_particles:
  725. - void **convert_from_particles** **(** :ref:`Node<class_Node>` particles **)**
  726. Sets this node's properties to match a given :ref:`Particles2D<class_Particles2D>` node with an assigned :ref:`ParticlesMaterial<class_ParticlesMaterial>`.
  727. ----
  728. .. _class_CPUParticles2D_method_restart:
  729. - void **restart** **(** **)**
  730. Restarts the particle emitter.