class_gpuparticles3d.rst 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/GPUParticles3D.xml.
  6. .. _class_GPUParticles3D:
  7. GPUParticles3D
  8. ==============
  9. **Inherits:** :ref:`GeometryInstance3D<class_GeometryInstance3D>` **<** :ref:`VisualInstance3D<class_VisualInstance3D>` **<** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. A 3D particle emitter.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. 3D particle node used to create a variety of particle systems and effects. **GPUParticles3D** features an emitter that generates some number of particles at a given rate.
  15. Use :ref:`process_material<class_GPUParticles3D_property_process_material>` to add a :ref:`ParticleProcessMaterial<class_ParticleProcessMaterial>` to configure particle appearance and behavior. Alternatively, you can add a :ref:`ShaderMaterial<class_ShaderMaterial>` which will be applied to all particles.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - :doc:`Particle systems (3D) <../tutorials/3d/particles/index>`
  20. - :doc:`Controlling thousands of fish with Particles <../tutorials/performance/vertex_animation/controlling_thousands_of_fish>`
  21. - `Third Person Shooter (TPS) Demo <https://godotengine.org/asset-library/asset/2710>`__
  22. .. rst-class:: classref-reftable-group
  23. Properties
  24. ----------
  25. .. table::
  26. :widths: auto
  27. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  28. | :ref:`int<class_int>` | :ref:`amount<class_GPUParticles3D_property_amount>` | ``8`` |
  29. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  30. | :ref:`float<class_float>` | :ref:`amount_ratio<class_GPUParticles3D_property_amount_ratio>` | ``1.0`` |
  31. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  32. | :ref:`float<class_float>` | :ref:`collision_base_size<class_GPUParticles3D_property_collision_base_size>` | ``0.01`` |
  33. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  34. | :ref:`DrawOrder<enum_GPUParticles3D_DrawOrder>` | :ref:`draw_order<class_GPUParticles3D_property_draw_order>` | ``0`` |
  35. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  36. | :ref:`Mesh<class_Mesh>` | :ref:`draw_pass_1<class_GPUParticles3D_property_draw_pass_1>` | |
  37. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  38. | :ref:`Mesh<class_Mesh>` | :ref:`draw_pass_2<class_GPUParticles3D_property_draw_pass_2>` | |
  39. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  40. | :ref:`Mesh<class_Mesh>` | :ref:`draw_pass_3<class_GPUParticles3D_property_draw_pass_3>` | |
  41. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  42. | :ref:`Mesh<class_Mesh>` | :ref:`draw_pass_4<class_GPUParticles3D_property_draw_pass_4>` | |
  43. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  44. | :ref:`int<class_int>` | :ref:`draw_passes<class_GPUParticles3D_property_draw_passes>` | ``1`` |
  45. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  46. | :ref:`Skin<class_Skin>` | :ref:`draw_skin<class_GPUParticles3D_property_draw_skin>` | |
  47. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  48. | :ref:`bool<class_bool>` | :ref:`emitting<class_GPUParticles3D_property_emitting>` | ``true`` |
  49. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  50. | :ref:`float<class_float>` | :ref:`explosiveness<class_GPUParticles3D_property_explosiveness>` | ``0.0`` |
  51. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  52. | :ref:`int<class_int>` | :ref:`fixed_fps<class_GPUParticles3D_property_fixed_fps>` | ``30`` |
  53. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  54. | :ref:`bool<class_bool>` | :ref:`fract_delta<class_GPUParticles3D_property_fract_delta>` | ``true`` |
  55. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  56. | :ref:`float<class_float>` | :ref:`interp_to_end<class_GPUParticles3D_property_interp_to_end>` | ``0.0`` |
  57. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  58. | :ref:`bool<class_bool>` | :ref:`interpolate<class_GPUParticles3D_property_interpolate>` | ``true`` |
  59. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  60. | :ref:`float<class_float>` | :ref:`lifetime<class_GPUParticles3D_property_lifetime>` | ``1.0`` |
  61. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  62. | :ref:`bool<class_bool>` | :ref:`local_coords<class_GPUParticles3D_property_local_coords>` | ``false`` |
  63. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  64. | :ref:`bool<class_bool>` | :ref:`one_shot<class_GPUParticles3D_property_one_shot>` | ``false`` |
  65. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  66. | :ref:`float<class_float>` | :ref:`preprocess<class_GPUParticles3D_property_preprocess>` | ``0.0`` |
  67. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  68. | :ref:`Material<class_Material>` | :ref:`process_material<class_GPUParticles3D_property_process_material>` | |
  69. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  70. | :ref:`float<class_float>` | :ref:`randomness<class_GPUParticles3D_property_randomness>` | ``0.0`` |
  71. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  72. | :ref:`int<class_int>` | :ref:`seed<class_GPUParticles3D_property_seed>` | ``0`` |
  73. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  74. | :ref:`float<class_float>` | :ref:`speed_scale<class_GPUParticles3D_property_speed_scale>` | ``1.0`` |
  75. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  76. | :ref:`NodePath<class_NodePath>` | :ref:`sub_emitter<class_GPUParticles3D_property_sub_emitter>` | ``NodePath("")`` |
  77. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  78. | :ref:`bool<class_bool>` | :ref:`trail_enabled<class_GPUParticles3D_property_trail_enabled>` | ``false`` |
  79. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  80. | :ref:`float<class_float>` | :ref:`trail_lifetime<class_GPUParticles3D_property_trail_lifetime>` | ``0.3`` |
  81. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  82. | :ref:`TransformAlign<enum_GPUParticles3D_TransformAlign>` | :ref:`transform_align<class_GPUParticles3D_property_transform_align>` | ``0`` |
  83. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  84. | :ref:`bool<class_bool>` | :ref:`use_fixed_seed<class_GPUParticles3D_property_use_fixed_seed>` | ``false`` |
  85. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  86. | :ref:`AABB<class_AABB>` | :ref:`visibility_aabb<class_GPUParticles3D_property_visibility_aabb>` | ``AABB(-4, -4, -4, 8, 8, 8)`` |
  87. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  88. .. rst-class:: classref-reftable-group
  89. Methods
  90. -------
  91. .. table::
  92. :widths: auto
  93. +-------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  94. | :ref:`AABB<class_AABB>` | :ref:`capture_aabb<class_GPUParticles3D_method_capture_aabb>`\ (\ ) |const| |
  95. +-------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  96. | |void| | :ref:`convert_from_particles<class_GPUParticles3D_method_convert_from_particles>`\ (\ particles\: :ref:`Node<class_Node>`\ ) |
  97. +-------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  98. | |void| | :ref:`emit_particle<class_GPUParticles3D_method_emit_particle>`\ (\ xform\: :ref:`Transform3D<class_Transform3D>`, velocity\: :ref:`Vector3<class_Vector3>`, color\: :ref:`Color<class_Color>`, custom\: :ref:`Color<class_Color>`, flags\: :ref:`int<class_int>`\ ) |
  99. +-------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  100. | :ref:`Mesh<class_Mesh>` | :ref:`get_draw_pass_mesh<class_GPUParticles3D_method_get_draw_pass_mesh>`\ (\ pass\: :ref:`int<class_int>`\ ) |const| |
  101. +-------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  102. | |void| | :ref:`request_particles_process<class_GPUParticles3D_method_request_particles_process>`\ (\ process_time\: :ref:`float<class_float>`\ ) |
  103. +-------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  104. | |void| | :ref:`restart<class_GPUParticles3D_method_restart>`\ (\ keep_seed\: :ref:`bool<class_bool>` = false\ ) |
  105. +-------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  106. | |void| | :ref:`set_draw_pass_mesh<class_GPUParticles3D_method_set_draw_pass_mesh>`\ (\ pass\: :ref:`int<class_int>`, mesh\: :ref:`Mesh<class_Mesh>`\ ) |
  107. +-------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  108. .. rst-class:: classref-section-separator
  109. ----
  110. .. rst-class:: classref-descriptions-group
  111. Signals
  112. -------
  113. .. _class_GPUParticles3D_signal_finished:
  114. .. rst-class:: classref-signal
  115. **finished**\ (\ ) :ref:`🔗<class_GPUParticles3D_signal_finished>`
  116. Emitted when all active particles have finished processing. To immediately restart the emission cycle, call :ref:`restart()<class_GPUParticles3D_method_restart>`.
  117. This signal is never emitted when :ref:`one_shot<class_GPUParticles3D_property_one_shot>` is disabled, as particles will be emitted and processed continuously.
  118. \ **Note:** For :ref:`one_shot<class_GPUParticles3D_property_one_shot>` emitters, due to the particles being computed on the GPU, there may be a short period after receiving the signal during which setting :ref:`emitting<class_GPUParticles3D_property_emitting>` to ``true`` will not restart the emission cycle. This delay is avoided by instead calling :ref:`restart()<class_GPUParticles3D_method_restart>`.
  119. .. rst-class:: classref-section-separator
  120. ----
  121. .. rst-class:: classref-descriptions-group
  122. Enumerations
  123. ------------
  124. .. _enum_GPUParticles3D_DrawOrder:
  125. .. rst-class:: classref-enumeration
  126. enum **DrawOrder**: :ref:`🔗<enum_GPUParticles3D_DrawOrder>`
  127. .. _class_GPUParticles3D_constant_DRAW_ORDER_INDEX:
  128. .. rst-class:: classref-enumeration-constant
  129. :ref:`DrawOrder<enum_GPUParticles3D_DrawOrder>` **DRAW_ORDER_INDEX** = ``0``
  130. Particles are drawn in the order emitted.
  131. .. _class_GPUParticles3D_constant_DRAW_ORDER_LIFETIME:
  132. .. rst-class:: classref-enumeration-constant
  133. :ref:`DrawOrder<enum_GPUParticles3D_DrawOrder>` **DRAW_ORDER_LIFETIME** = ``1``
  134. Particles are drawn in order of remaining lifetime. In other words, the particle with the highest lifetime is drawn at the front.
  135. .. _class_GPUParticles3D_constant_DRAW_ORDER_REVERSE_LIFETIME:
  136. .. rst-class:: classref-enumeration-constant
  137. :ref:`DrawOrder<enum_GPUParticles3D_DrawOrder>` **DRAW_ORDER_REVERSE_LIFETIME** = ``2``
  138. Particles are drawn in reverse order of remaining lifetime. In other words, the particle with the lowest lifetime is drawn at the front.
  139. .. _class_GPUParticles3D_constant_DRAW_ORDER_VIEW_DEPTH:
  140. .. rst-class:: classref-enumeration-constant
  141. :ref:`DrawOrder<enum_GPUParticles3D_DrawOrder>` **DRAW_ORDER_VIEW_DEPTH** = ``3``
  142. Particles are drawn in order of depth.
  143. .. rst-class:: classref-item-separator
  144. ----
  145. .. _enum_GPUParticles3D_EmitFlags:
  146. .. rst-class:: classref-enumeration
  147. enum **EmitFlags**: :ref:`🔗<enum_GPUParticles3D_EmitFlags>`
  148. .. _class_GPUParticles3D_constant_EMIT_FLAG_POSITION:
  149. .. rst-class:: classref-enumeration-constant
  150. :ref:`EmitFlags<enum_GPUParticles3D_EmitFlags>` **EMIT_FLAG_POSITION** = ``1``
  151. Particle starts at the specified position.
  152. .. _class_GPUParticles3D_constant_EMIT_FLAG_ROTATION_SCALE:
  153. .. rst-class:: classref-enumeration-constant
  154. :ref:`EmitFlags<enum_GPUParticles3D_EmitFlags>` **EMIT_FLAG_ROTATION_SCALE** = ``2``
  155. Particle starts with specified rotation and scale.
  156. .. _class_GPUParticles3D_constant_EMIT_FLAG_VELOCITY:
  157. .. rst-class:: classref-enumeration-constant
  158. :ref:`EmitFlags<enum_GPUParticles3D_EmitFlags>` **EMIT_FLAG_VELOCITY** = ``4``
  159. Particle starts with the specified velocity vector, which defines the emission direction and speed.
  160. .. _class_GPUParticles3D_constant_EMIT_FLAG_COLOR:
  161. .. rst-class:: classref-enumeration-constant
  162. :ref:`EmitFlags<enum_GPUParticles3D_EmitFlags>` **EMIT_FLAG_COLOR** = ``8``
  163. Particle starts with specified color.
  164. .. _class_GPUParticles3D_constant_EMIT_FLAG_CUSTOM:
  165. .. rst-class:: classref-enumeration-constant
  166. :ref:`EmitFlags<enum_GPUParticles3D_EmitFlags>` **EMIT_FLAG_CUSTOM** = ``16``
  167. Particle starts with specified ``CUSTOM`` data.
  168. .. rst-class:: classref-item-separator
  169. ----
  170. .. _enum_GPUParticles3D_TransformAlign:
  171. .. rst-class:: classref-enumeration
  172. enum **TransformAlign**: :ref:`🔗<enum_GPUParticles3D_TransformAlign>`
  173. .. _class_GPUParticles3D_constant_TRANSFORM_ALIGN_DISABLED:
  174. .. rst-class:: classref-enumeration-constant
  175. :ref:`TransformAlign<enum_GPUParticles3D_TransformAlign>` **TRANSFORM_ALIGN_DISABLED** = ``0``
  176. .. container:: contribute
  177. There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  178. .. _class_GPUParticles3D_constant_TRANSFORM_ALIGN_Z_BILLBOARD:
  179. .. rst-class:: classref-enumeration-constant
  180. :ref:`TransformAlign<enum_GPUParticles3D_TransformAlign>` **TRANSFORM_ALIGN_Z_BILLBOARD** = ``1``
  181. .. container:: contribute
  182. There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  183. .. _class_GPUParticles3D_constant_TRANSFORM_ALIGN_Y_TO_VELOCITY:
  184. .. rst-class:: classref-enumeration-constant
  185. :ref:`TransformAlign<enum_GPUParticles3D_TransformAlign>` **TRANSFORM_ALIGN_Y_TO_VELOCITY** = ``2``
  186. .. container:: contribute
  187. There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  188. .. _class_GPUParticles3D_constant_TRANSFORM_ALIGN_Z_BILLBOARD_Y_TO_VELOCITY:
  189. .. rst-class:: classref-enumeration-constant
  190. :ref:`TransformAlign<enum_GPUParticles3D_TransformAlign>` **TRANSFORM_ALIGN_Z_BILLBOARD_Y_TO_VELOCITY** = ``3``
  191. .. container:: contribute
  192. There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  193. .. rst-class:: classref-section-separator
  194. ----
  195. .. rst-class:: classref-descriptions-group
  196. Constants
  197. ---------
  198. .. _class_GPUParticles3D_constant_MAX_DRAW_PASSES:
  199. .. rst-class:: classref-constant
  200. **MAX_DRAW_PASSES** = ``4`` :ref:`🔗<class_GPUParticles3D_constant_MAX_DRAW_PASSES>`
  201. Maximum number of draw passes supported.
  202. .. rst-class:: classref-section-separator
  203. ----
  204. .. rst-class:: classref-descriptions-group
  205. Property Descriptions
  206. ---------------------
  207. .. _class_GPUParticles3D_property_amount:
  208. .. rst-class:: classref-property
  209. :ref:`int<class_int>` **amount** = ``8`` :ref:`🔗<class_GPUParticles3D_property_amount>`
  210. .. rst-class:: classref-property-setget
  211. - |void| **set_amount**\ (\ value\: :ref:`int<class_int>`\ )
  212. - :ref:`int<class_int>` **get_amount**\ (\ )
  213. The number of particles to emit in one emission cycle. The effective emission rate is ``(amount * amount_ratio) / lifetime`` particles per second. Higher values will increase GPU requirements, even if not all particles are visible at a given time or if :ref:`amount_ratio<class_GPUParticles3D_property_amount_ratio>` is decreased.
  214. \ **Note:** Changing this value will cause the particle system to restart. To avoid this, change :ref:`amount_ratio<class_GPUParticles3D_property_amount_ratio>` instead.
  215. .. rst-class:: classref-item-separator
  216. ----
  217. .. _class_GPUParticles3D_property_amount_ratio:
  218. .. rst-class:: classref-property
  219. :ref:`float<class_float>` **amount_ratio** = ``1.0`` :ref:`🔗<class_GPUParticles3D_property_amount_ratio>`
  220. .. rst-class:: classref-property-setget
  221. - |void| **set_amount_ratio**\ (\ value\: :ref:`float<class_float>`\ )
  222. - :ref:`float<class_float>` **get_amount_ratio**\ (\ )
  223. The ratio of particles that should actually be emitted. If set to a value lower than ``1.0``, this will set the amount of emitted particles throughout the lifetime to ``amount * amount_ratio``. Unlike changing :ref:`amount<class_GPUParticles3D_property_amount>`, changing :ref:`amount_ratio<class_GPUParticles3D_property_amount_ratio>` while emitting does not affect already-emitted particles and doesn't cause the particle system to restart. :ref:`amount_ratio<class_GPUParticles3D_property_amount_ratio>` can be used to create effects that make the number of emitted particles vary over time.
  224. \ **Note:** Reducing the :ref:`amount_ratio<class_GPUParticles3D_property_amount_ratio>` has no performance benefit, since resources need to be allocated and processed for the total :ref:`amount<class_GPUParticles3D_property_amount>` of particles regardless of the :ref:`amount_ratio<class_GPUParticles3D_property_amount_ratio>`. If you don't intend to change the number of particles emitted while the particles are emitting, make sure :ref:`amount_ratio<class_GPUParticles3D_property_amount_ratio>` is set to ``1`` and change :ref:`amount<class_GPUParticles3D_property_amount>` to your liking instead.
  225. .. rst-class:: classref-item-separator
  226. ----
  227. .. _class_GPUParticles3D_property_collision_base_size:
  228. .. rst-class:: classref-property
  229. :ref:`float<class_float>` **collision_base_size** = ``0.01`` :ref:`🔗<class_GPUParticles3D_property_collision_base_size>`
  230. .. rst-class:: classref-property-setget
  231. - |void| **set_collision_base_size**\ (\ value\: :ref:`float<class_float>`\ )
  232. - :ref:`float<class_float>` **get_collision_base_size**\ (\ )
  233. The base diameter for particle collision in meters. If particles appear to sink into the ground when colliding, increase this value. If particles appear to float when colliding, decrease this value. Only effective if :ref:`ParticleProcessMaterial.collision_mode<class_ParticleProcessMaterial_property_collision_mode>` is :ref:`ParticleProcessMaterial.COLLISION_RIGID<class_ParticleProcessMaterial_constant_COLLISION_RIGID>` or :ref:`ParticleProcessMaterial.COLLISION_HIDE_ON_CONTACT<class_ParticleProcessMaterial_constant_COLLISION_HIDE_ON_CONTACT>`.
  234. \ **Note:** Particles always have a spherical collision shape.
  235. .. rst-class:: classref-item-separator
  236. ----
  237. .. _class_GPUParticles3D_property_draw_order:
  238. .. rst-class:: classref-property
  239. :ref:`DrawOrder<enum_GPUParticles3D_DrawOrder>` **draw_order** = ``0`` :ref:`🔗<class_GPUParticles3D_property_draw_order>`
  240. .. rst-class:: classref-property-setget
  241. - |void| **set_draw_order**\ (\ value\: :ref:`DrawOrder<enum_GPUParticles3D_DrawOrder>`\ )
  242. - :ref:`DrawOrder<enum_GPUParticles3D_DrawOrder>` **get_draw_order**\ (\ )
  243. Particle draw order. Uses :ref:`DrawOrder<enum_GPUParticles3D_DrawOrder>` values.
  244. \ **Note:** :ref:`DRAW_ORDER_INDEX<class_GPUParticles3D_constant_DRAW_ORDER_INDEX>` is the only option that supports motion vectors for effects like TAA. It is suggested to use this draw order if the particles are opaque to fix ghosting artifacts.
  245. .. rst-class:: classref-item-separator
  246. ----
  247. .. _class_GPUParticles3D_property_draw_pass_1:
  248. .. rst-class:: classref-property
  249. :ref:`Mesh<class_Mesh>` **draw_pass_1** :ref:`🔗<class_GPUParticles3D_property_draw_pass_1>`
  250. .. rst-class:: classref-property-setget
  251. - |void| **set_draw_pass_mesh**\ (\ pass\: :ref:`int<class_int>`, mesh\: :ref:`Mesh<class_Mesh>`\ )
  252. - :ref:`Mesh<class_Mesh>` **get_draw_pass_mesh**\ (\ pass\: :ref:`int<class_int>`\ ) |const|
  253. :ref:`Mesh<class_Mesh>` that is drawn for the first draw pass.
  254. .. rst-class:: classref-item-separator
  255. ----
  256. .. _class_GPUParticles3D_property_draw_pass_2:
  257. .. rst-class:: classref-property
  258. :ref:`Mesh<class_Mesh>` **draw_pass_2** :ref:`🔗<class_GPUParticles3D_property_draw_pass_2>`
  259. .. rst-class:: classref-property-setget
  260. - |void| **set_draw_pass_mesh**\ (\ pass\: :ref:`int<class_int>`, mesh\: :ref:`Mesh<class_Mesh>`\ )
  261. - :ref:`Mesh<class_Mesh>` **get_draw_pass_mesh**\ (\ pass\: :ref:`int<class_int>`\ ) |const|
  262. :ref:`Mesh<class_Mesh>` that is drawn for the second draw pass.
  263. .. rst-class:: classref-item-separator
  264. ----
  265. .. _class_GPUParticles3D_property_draw_pass_3:
  266. .. rst-class:: classref-property
  267. :ref:`Mesh<class_Mesh>` **draw_pass_3** :ref:`🔗<class_GPUParticles3D_property_draw_pass_3>`
  268. .. rst-class:: classref-property-setget
  269. - |void| **set_draw_pass_mesh**\ (\ pass\: :ref:`int<class_int>`, mesh\: :ref:`Mesh<class_Mesh>`\ )
  270. - :ref:`Mesh<class_Mesh>` **get_draw_pass_mesh**\ (\ pass\: :ref:`int<class_int>`\ ) |const|
  271. :ref:`Mesh<class_Mesh>` that is drawn for the third draw pass.
  272. .. rst-class:: classref-item-separator
  273. ----
  274. .. _class_GPUParticles3D_property_draw_pass_4:
  275. .. rst-class:: classref-property
  276. :ref:`Mesh<class_Mesh>` **draw_pass_4** :ref:`🔗<class_GPUParticles3D_property_draw_pass_4>`
  277. .. rst-class:: classref-property-setget
  278. - |void| **set_draw_pass_mesh**\ (\ pass\: :ref:`int<class_int>`, mesh\: :ref:`Mesh<class_Mesh>`\ )
  279. - :ref:`Mesh<class_Mesh>` **get_draw_pass_mesh**\ (\ pass\: :ref:`int<class_int>`\ ) |const|
  280. :ref:`Mesh<class_Mesh>` that is drawn for the fourth draw pass.
  281. .. rst-class:: classref-item-separator
  282. ----
  283. .. _class_GPUParticles3D_property_draw_passes:
  284. .. rst-class:: classref-property
  285. :ref:`int<class_int>` **draw_passes** = ``1`` :ref:`🔗<class_GPUParticles3D_property_draw_passes>`
  286. .. rst-class:: classref-property-setget
  287. - |void| **set_draw_passes**\ (\ value\: :ref:`int<class_int>`\ )
  288. - :ref:`int<class_int>` **get_draw_passes**\ (\ )
  289. The number of draw passes when rendering particles.
  290. .. rst-class:: classref-item-separator
  291. ----
  292. .. _class_GPUParticles3D_property_draw_skin:
  293. .. rst-class:: classref-property
  294. :ref:`Skin<class_Skin>` **draw_skin** :ref:`🔗<class_GPUParticles3D_property_draw_skin>`
  295. .. rst-class:: classref-property-setget
  296. - |void| **set_skin**\ (\ value\: :ref:`Skin<class_Skin>`\ )
  297. - :ref:`Skin<class_Skin>` **get_skin**\ (\ )
  298. .. container:: contribute
  299. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  300. .. rst-class:: classref-item-separator
  301. ----
  302. .. _class_GPUParticles3D_property_emitting:
  303. .. rst-class:: classref-property
  304. :ref:`bool<class_bool>` **emitting** = ``true`` :ref:`🔗<class_GPUParticles3D_property_emitting>`
  305. .. rst-class:: classref-property-setget
  306. - |void| **set_emitting**\ (\ value\: :ref:`bool<class_bool>`\ )
  307. - :ref:`bool<class_bool>` **is_emitting**\ (\ )
  308. If ``true``, particles are being emitted. :ref:`emitting<class_GPUParticles3D_property_emitting>` can be used to start and stop particles from emitting. However, if :ref:`one_shot<class_GPUParticles3D_property_one_shot>` is ``true`` setting :ref:`emitting<class_GPUParticles3D_property_emitting>` to ``true`` will not restart the emission cycle unless all active particles have finished processing. Use the :ref:`finished<class_GPUParticles3D_signal_finished>` signal to be notified once all active particles finish processing.
  309. \ **Note:** For :ref:`one_shot<class_GPUParticles3D_property_one_shot>` emitters, due to the particles being computed on the GPU, there may be a short period after receiving the :ref:`finished<class_GPUParticles3D_signal_finished>` signal during which setting this to ``true`` will not restart the emission cycle.
  310. \ **Tip:** If your :ref:`one_shot<class_GPUParticles3D_property_one_shot>` emitter needs to immediately restart emitting particles once :ref:`finished<class_GPUParticles3D_signal_finished>` signal is received, consider calling :ref:`restart()<class_GPUParticles3D_method_restart>` instead of setting :ref:`emitting<class_GPUParticles3D_property_emitting>`.
  311. .. rst-class:: classref-item-separator
  312. ----
  313. .. _class_GPUParticles3D_property_explosiveness:
  314. .. rst-class:: classref-property
  315. :ref:`float<class_float>` **explosiveness** = ``0.0`` :ref:`🔗<class_GPUParticles3D_property_explosiveness>`
  316. .. rst-class:: classref-property-setget
  317. - |void| **set_explosiveness_ratio**\ (\ value\: :ref:`float<class_float>`\ )
  318. - :ref:`float<class_float>` **get_explosiveness_ratio**\ (\ )
  319. Time ratio between each emission. If ``0``, particles are emitted continuously. If ``1``, all particles are emitted simultaneously.
  320. .. rst-class:: classref-item-separator
  321. ----
  322. .. _class_GPUParticles3D_property_fixed_fps:
  323. .. rst-class:: classref-property
  324. :ref:`int<class_int>` **fixed_fps** = ``30`` :ref:`🔗<class_GPUParticles3D_property_fixed_fps>`
  325. .. rst-class:: classref-property-setget
  326. - |void| **set_fixed_fps**\ (\ value\: :ref:`int<class_int>`\ )
  327. - :ref:`int<class_int>` **get_fixed_fps**\ (\ )
  328. 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 simulation of the particle system itself.
  329. .. rst-class:: classref-item-separator
  330. ----
  331. .. _class_GPUParticles3D_property_fract_delta:
  332. .. rst-class:: classref-property
  333. :ref:`bool<class_bool>` **fract_delta** = ``true`` :ref:`🔗<class_GPUParticles3D_property_fract_delta>`
  334. .. rst-class:: classref-property-setget
  335. - |void| **set_fractional_delta**\ (\ value\: :ref:`bool<class_bool>`\ )
  336. - :ref:`bool<class_bool>` **get_fractional_delta**\ (\ )
  337. If ``true``, results in fractional delta calculation which has a smoother particles display effect.
  338. .. rst-class:: classref-item-separator
  339. ----
  340. .. _class_GPUParticles3D_property_interp_to_end:
  341. .. rst-class:: classref-property
  342. :ref:`float<class_float>` **interp_to_end** = ``0.0`` :ref:`🔗<class_GPUParticles3D_property_interp_to_end>`
  343. .. rst-class:: classref-property-setget
  344. - |void| **set_interp_to_end**\ (\ value\: :ref:`float<class_float>`\ )
  345. - :ref:`float<class_float>` **get_interp_to_end**\ (\ )
  346. Causes all the particles in this node to interpolate towards the end of their lifetime.
  347. \ **Note:** This only works when used with a :ref:`ParticleProcessMaterial<class_ParticleProcessMaterial>`. It needs to be manually implemented for custom process shaders.
  348. .. rst-class:: classref-item-separator
  349. ----
  350. .. _class_GPUParticles3D_property_interpolate:
  351. .. rst-class:: classref-property
  352. :ref:`bool<class_bool>` **interpolate** = ``true`` :ref:`🔗<class_GPUParticles3D_property_interpolate>`
  353. .. rst-class:: classref-property-setget
  354. - |void| **set_interpolate**\ (\ value\: :ref:`bool<class_bool>`\ )
  355. - :ref:`bool<class_bool>` **get_interpolate**\ (\ )
  356. Enables particle interpolation, which makes the particle movement smoother when their :ref:`fixed_fps<class_GPUParticles3D_property_fixed_fps>` is lower than the screen refresh rate.
  357. .. rst-class:: classref-item-separator
  358. ----
  359. .. _class_GPUParticles3D_property_lifetime:
  360. .. rst-class:: classref-property
  361. :ref:`float<class_float>` **lifetime** = ``1.0`` :ref:`🔗<class_GPUParticles3D_property_lifetime>`
  362. .. rst-class:: classref-property-setget
  363. - |void| **set_lifetime**\ (\ value\: :ref:`float<class_float>`\ )
  364. - :ref:`float<class_float>` **get_lifetime**\ (\ )
  365. The amount of time each particle will exist (in seconds). The effective emission rate is ``(amount * amount_ratio) / lifetime`` particles per second.
  366. .. rst-class:: classref-item-separator
  367. ----
  368. .. _class_GPUParticles3D_property_local_coords:
  369. .. rst-class:: classref-property
  370. :ref:`bool<class_bool>` **local_coords** = ``false`` :ref:`🔗<class_GPUParticles3D_property_local_coords>`
  371. .. rst-class:: classref-property-setget
  372. - |void| **set_use_local_coordinates**\ (\ value\: :ref:`bool<class_bool>`\ )
  373. - :ref:`bool<class_bool>` **get_use_local_coordinates**\ (\ )
  374. If ``true``, particles use the parent node's coordinate space (known as local coordinates). This will cause particles to move and rotate along the **GPUParticles3D** node (and its parents) when it is moved or rotated. If ``false``, particles use global coordinates; they will not move or rotate along the **GPUParticles3D** node (and its parents) when it is moved or rotated.
  375. .. rst-class:: classref-item-separator
  376. ----
  377. .. _class_GPUParticles3D_property_one_shot:
  378. .. rst-class:: classref-property
  379. :ref:`bool<class_bool>` **one_shot** = ``false`` :ref:`🔗<class_GPUParticles3D_property_one_shot>`
  380. .. rst-class:: classref-property-setget
  381. - |void| **set_one_shot**\ (\ value\: :ref:`bool<class_bool>`\ )
  382. - :ref:`bool<class_bool>` **get_one_shot**\ (\ )
  383. If ``true``, only the number of particles equal to :ref:`amount<class_GPUParticles3D_property_amount>` will be emitted.
  384. .. rst-class:: classref-item-separator
  385. ----
  386. .. _class_GPUParticles3D_property_preprocess:
  387. .. rst-class:: classref-property
  388. :ref:`float<class_float>` **preprocess** = ``0.0`` :ref:`🔗<class_GPUParticles3D_property_preprocess>`
  389. .. rst-class:: classref-property-setget
  390. - |void| **set_pre_process_time**\ (\ value\: :ref:`float<class_float>`\ )
  391. - :ref:`float<class_float>` **get_pre_process_time**\ (\ )
  392. Amount of time to preprocess the particles before animation starts. Lets you start the animation some time after particles have started emitting.
  393. \ **Note:** This can be very expensive if set to a high number as it requires running the particle shader a number of times equal to the :ref:`fixed_fps<class_GPUParticles3D_property_fixed_fps>` (or 30, if :ref:`fixed_fps<class_GPUParticles3D_property_fixed_fps>` is 0) for every second. In extreme cases it can even lead to a GPU crash due to the volume of work done in a single frame.
  394. .. rst-class:: classref-item-separator
  395. ----
  396. .. _class_GPUParticles3D_property_process_material:
  397. .. rst-class:: classref-property
  398. :ref:`Material<class_Material>` **process_material** :ref:`🔗<class_GPUParticles3D_property_process_material>`
  399. .. rst-class:: classref-property-setget
  400. - |void| **set_process_material**\ (\ value\: :ref:`Material<class_Material>`\ )
  401. - :ref:`Material<class_Material>` **get_process_material**\ (\ )
  402. :ref:`Material<class_Material>` for processing particles. Can be a :ref:`ParticleProcessMaterial<class_ParticleProcessMaterial>` or a :ref:`ShaderMaterial<class_ShaderMaterial>`.
  403. .. rst-class:: classref-item-separator
  404. ----
  405. .. _class_GPUParticles3D_property_randomness:
  406. .. rst-class:: classref-property
  407. :ref:`float<class_float>` **randomness** = ``0.0`` :ref:`🔗<class_GPUParticles3D_property_randomness>`
  408. .. rst-class:: classref-property-setget
  409. - |void| **set_randomness_ratio**\ (\ value\: :ref:`float<class_float>`\ )
  410. - :ref:`float<class_float>` **get_randomness_ratio**\ (\ )
  411. Emission randomness ratio.
  412. .. rst-class:: classref-item-separator
  413. ----
  414. .. _class_GPUParticles3D_property_seed:
  415. .. rst-class:: classref-property
  416. :ref:`int<class_int>` **seed** = ``0`` :ref:`🔗<class_GPUParticles3D_property_seed>`
  417. .. rst-class:: classref-property-setget
  418. - |void| **set_seed**\ (\ value\: :ref:`int<class_int>`\ )
  419. - :ref:`int<class_int>` **get_seed**\ (\ )
  420. Sets the random seed used by the particle system. Only effective if :ref:`use_fixed_seed<class_GPUParticles3D_property_use_fixed_seed>` is ``true``.
  421. .. rst-class:: classref-item-separator
  422. ----
  423. .. _class_GPUParticles3D_property_speed_scale:
  424. .. rst-class:: classref-property
  425. :ref:`float<class_float>` **speed_scale** = ``1.0`` :ref:`🔗<class_GPUParticles3D_property_speed_scale>`
  426. .. rst-class:: classref-property-setget
  427. - |void| **set_speed_scale**\ (\ value\: :ref:`float<class_float>`\ )
  428. - :ref:`float<class_float>` **get_speed_scale**\ (\ )
  429. Speed scaling ratio. A value of ``0`` can be used to pause the particles.
  430. .. rst-class:: classref-item-separator
  431. ----
  432. .. _class_GPUParticles3D_property_sub_emitter:
  433. .. rst-class:: classref-property
  434. :ref:`NodePath<class_NodePath>` **sub_emitter** = ``NodePath("")`` :ref:`🔗<class_GPUParticles3D_property_sub_emitter>`
  435. .. rst-class:: classref-property-setget
  436. - |void| **set_sub_emitter**\ (\ value\: :ref:`NodePath<class_NodePath>`\ )
  437. - :ref:`NodePath<class_NodePath>` **get_sub_emitter**\ (\ )
  438. Path to another **GPUParticles3D** node that will be used as a subemitter (see :ref:`ParticleProcessMaterial.sub_emitter_mode<class_ParticleProcessMaterial_property_sub_emitter_mode>`). Subemitters can be used to achieve effects such as fireworks, sparks on collision, bubbles popping into water drops, and more.
  439. \ **Note:** When :ref:`sub_emitter<class_GPUParticles3D_property_sub_emitter>` is set, the target **GPUParticles3D** node will no longer emit particles on its own.
  440. .. rst-class:: classref-item-separator
  441. ----
  442. .. _class_GPUParticles3D_property_trail_enabled:
  443. .. rst-class:: classref-property
  444. :ref:`bool<class_bool>` **trail_enabled** = ``false`` :ref:`🔗<class_GPUParticles3D_property_trail_enabled>`
  445. .. rst-class:: classref-property-setget
  446. - |void| **set_trail_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
  447. - :ref:`bool<class_bool>` **is_trail_enabled**\ (\ )
  448. If ``true``, enables particle trails using a mesh skinning system. Designed to work with :ref:`RibbonTrailMesh<class_RibbonTrailMesh>` and :ref:`TubeTrailMesh<class_TubeTrailMesh>`.
  449. \ **Note:** :ref:`BaseMaterial3D.use_particle_trails<class_BaseMaterial3D_property_use_particle_trails>` must also be enabled on the particle mesh's material. Otherwise, setting :ref:`trail_enabled<class_GPUParticles3D_property_trail_enabled>` to ``true`` will have no effect.
  450. \ **Note:** Unlike :ref:`GPUParticles2D<class_GPUParticles2D>`, the number of trail sections and subdivisions is set in the :ref:`RibbonTrailMesh<class_RibbonTrailMesh>` or the :ref:`TubeTrailMesh<class_TubeTrailMesh>`'s properties.
  451. .. rst-class:: classref-item-separator
  452. ----
  453. .. _class_GPUParticles3D_property_trail_lifetime:
  454. .. rst-class:: classref-property
  455. :ref:`float<class_float>` **trail_lifetime** = ``0.3`` :ref:`🔗<class_GPUParticles3D_property_trail_lifetime>`
  456. .. rst-class:: classref-property-setget
  457. - |void| **set_trail_lifetime**\ (\ value\: :ref:`float<class_float>`\ )
  458. - :ref:`float<class_float>` **get_trail_lifetime**\ (\ )
  459. The amount of time the particle's trail should represent (in seconds). Only effective if :ref:`trail_enabled<class_GPUParticles3D_property_trail_enabled>` is ``true``.
  460. .. rst-class:: classref-item-separator
  461. ----
  462. .. _class_GPUParticles3D_property_transform_align:
  463. .. rst-class:: classref-property
  464. :ref:`TransformAlign<enum_GPUParticles3D_TransformAlign>` **transform_align** = ``0`` :ref:`🔗<class_GPUParticles3D_property_transform_align>`
  465. .. rst-class:: classref-property-setget
  466. - |void| **set_transform_align**\ (\ value\: :ref:`TransformAlign<enum_GPUParticles3D_TransformAlign>`\ )
  467. - :ref:`TransformAlign<enum_GPUParticles3D_TransformAlign>` **get_transform_align**\ (\ )
  468. .. container:: contribute
  469. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  470. .. rst-class:: classref-item-separator
  471. ----
  472. .. _class_GPUParticles3D_property_use_fixed_seed:
  473. .. rst-class:: classref-property
  474. :ref:`bool<class_bool>` **use_fixed_seed** = ``false`` :ref:`🔗<class_GPUParticles3D_property_use_fixed_seed>`
  475. .. rst-class:: classref-property-setget
  476. - |void| **set_use_fixed_seed**\ (\ value\: :ref:`bool<class_bool>`\ )
  477. - :ref:`bool<class_bool>` **get_use_fixed_seed**\ (\ )
  478. If ``true``, particles will use the same seed for every simulation using the seed defined in :ref:`seed<class_GPUParticles3D_property_seed>`. This is useful for situations where the visual outcome should be consistent across replays, for example when using Movie Maker mode.
  479. .. rst-class:: classref-item-separator
  480. ----
  481. .. _class_GPUParticles3D_property_visibility_aabb:
  482. .. rst-class:: classref-property
  483. :ref:`AABB<class_AABB>` **visibility_aabb** = ``AABB(-4, -4, -4, 8, 8, 8)`` :ref:`🔗<class_GPUParticles3D_property_visibility_aabb>`
  484. .. rst-class:: classref-property-setget
  485. - |void| **set_visibility_aabb**\ (\ value\: :ref:`AABB<class_AABB>`\ )
  486. - :ref:`AABB<class_AABB>` **get_visibility_aabb**\ (\ )
  487. The :ref:`AABB<class_AABB>` that determines the node's region which needs to be visible on screen for the particle system to be active. :ref:`GeometryInstance3D.extra_cull_margin<class_GeometryInstance3D_property_extra_cull_margin>` is added on each of the AABB's axes. Particle collisions and attraction will only occur within this area.
  488. Grow the box if particles suddenly appear/disappear when the node enters/exits the screen. The :ref:`AABB<class_AABB>` can be grown via code or with the **Particles → Generate AABB** editor tool.
  489. \ **Note:** :ref:`visibility_aabb<class_GPUParticles3D_property_visibility_aabb>` is overridden by :ref:`GeometryInstance3D.custom_aabb<class_GeometryInstance3D_property_custom_aabb>` if that property is set to a non-default value.
  490. .. rst-class:: classref-section-separator
  491. ----
  492. .. rst-class:: classref-descriptions-group
  493. Method Descriptions
  494. -------------------
  495. .. _class_GPUParticles3D_method_capture_aabb:
  496. .. rst-class:: classref-method
  497. :ref:`AABB<class_AABB>` **capture_aabb**\ (\ ) |const| :ref:`🔗<class_GPUParticles3D_method_capture_aabb>`
  498. Returns the axis-aligned bounding box that contains all the particles that are active in the current frame.
  499. .. rst-class:: classref-item-separator
  500. ----
  501. .. _class_GPUParticles3D_method_convert_from_particles:
  502. .. rst-class:: classref-method
  503. |void| **convert_from_particles**\ (\ particles\: :ref:`Node<class_Node>`\ ) :ref:`🔗<class_GPUParticles3D_method_convert_from_particles>`
  504. Sets this node's properties to match a given :ref:`CPUParticles3D<class_CPUParticles3D>` node.
  505. .. rst-class:: classref-item-separator
  506. ----
  507. .. _class_GPUParticles3D_method_emit_particle:
  508. .. rst-class:: classref-method
  509. |void| **emit_particle**\ (\ xform\: :ref:`Transform3D<class_Transform3D>`, velocity\: :ref:`Vector3<class_Vector3>`, color\: :ref:`Color<class_Color>`, custom\: :ref:`Color<class_Color>`, flags\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GPUParticles3D_method_emit_particle>`
  510. Emits a single particle. Whether ``xform``, ``velocity``, ``color`` and ``custom`` are applied depends on the value of ``flags``. See :ref:`EmitFlags<enum_GPUParticles3D_EmitFlags>`.
  511. The default ParticleProcessMaterial will overwrite ``color`` and use the contents of ``custom`` as ``(rotation, age, animation, lifetime)``.
  512. \ **Note:** :ref:`emit_particle()<class_GPUParticles3D_method_emit_particle>` is only supported on the Forward+ and Mobile rendering methods, not Compatibility.
  513. .. rst-class:: classref-item-separator
  514. ----
  515. .. _class_GPUParticles3D_method_get_draw_pass_mesh:
  516. .. rst-class:: classref-method
  517. :ref:`Mesh<class_Mesh>` **get_draw_pass_mesh**\ (\ pass\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GPUParticles3D_method_get_draw_pass_mesh>`
  518. Returns the :ref:`Mesh<class_Mesh>` that is drawn at index ``pass``.
  519. .. rst-class:: classref-item-separator
  520. ----
  521. .. _class_GPUParticles3D_method_request_particles_process:
  522. .. rst-class:: classref-method
  523. |void| **request_particles_process**\ (\ process_time\: :ref:`float<class_float>`\ ) :ref:`🔗<class_GPUParticles3D_method_request_particles_process>`
  524. Requests the particles to process for extra process time during a single frame.
  525. Useful for particle playback, if used in combination with :ref:`use_fixed_seed<class_GPUParticles3D_property_use_fixed_seed>` or by calling :ref:`restart()<class_GPUParticles3D_method_restart>` with parameter ``keep_seed`` set to ``true``.
  526. .. rst-class:: classref-item-separator
  527. ----
  528. .. _class_GPUParticles3D_method_restart:
  529. .. rst-class:: classref-method
  530. |void| **restart**\ (\ keep_seed\: :ref:`bool<class_bool>` = false\ ) :ref:`🔗<class_GPUParticles3D_method_restart>`
  531. Restarts the particle emission cycle, clearing existing particles. To avoid particles vanishing from the viewport, wait for the :ref:`finished<class_GPUParticles3D_signal_finished>` signal before calling.
  532. \ **Note:** The :ref:`finished<class_GPUParticles3D_signal_finished>` signal is only emitted by :ref:`one_shot<class_GPUParticles3D_property_one_shot>` emitters.
  533. If ``keep_seed`` is ``true``, the current random seed will be preserved. Useful for seeking and playback.
  534. .. rst-class:: classref-item-separator
  535. ----
  536. .. _class_GPUParticles3D_method_set_draw_pass_mesh:
  537. .. rst-class:: classref-method
  538. |void| **set_draw_pass_mesh**\ (\ pass\: :ref:`int<class_int>`, mesh\: :ref:`Mesh<class_Mesh>`\ ) :ref:`🔗<class_GPUParticles3D_method_set_draw_pass_mesh>`
  539. Sets the :ref:`Mesh<class_Mesh>` that is drawn at index ``pass``.
  540. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  541. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  542. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  543. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  544. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  545. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  546. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  547. .. |void| replace:: :abbr:`void (No return value.)`