class_particlesmaterial.rst 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the ParticlesMaterial.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_ParticlesMaterial:
  5. ParticlesMaterial
  6. =================
  7. **Inherits:** :ref:`Material<class_Material>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Particle properties for :ref:`Particles<class_Particles>` and :ref:`Particles2D<class_Particles2D>` nodes.
  12. Properties
  13. ----------
  14. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  15. | :ref:`float<class_float>` | :ref:`angle<class_ParticlesMaterial_angle>` |
  16. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  17. | :ref:`Texture<class_Texture>` | :ref:`angle_curve<class_ParticlesMaterial_angle_curve>` |
  18. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  19. | :ref:`float<class_float>` | :ref:`angle_random<class_ParticlesMaterial_angle_random>` |
  20. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  21. | :ref:`float<class_float>` | :ref:`angular_velocity<class_ParticlesMaterial_angular_velocity>` |
  22. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  23. | :ref:`Texture<class_Texture>` | :ref:`angular_velocity_curve<class_ParticlesMaterial_angular_velocity_curve>` |
  24. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  25. | :ref:`float<class_float>` | :ref:`angular_velocity_random<class_ParticlesMaterial_angular_velocity_random>` |
  26. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  27. | :ref:`float<class_float>` | :ref:`anim_offset<class_ParticlesMaterial_anim_offset>` |
  28. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  29. | :ref:`Texture<class_Texture>` | :ref:`anim_offset_curve<class_ParticlesMaterial_anim_offset_curve>` |
  30. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  31. | :ref:`float<class_float>` | :ref:`anim_offset_random<class_ParticlesMaterial_anim_offset_random>` |
  32. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  33. | :ref:`float<class_float>` | :ref:`anim_speed<class_ParticlesMaterial_anim_speed>` |
  34. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  35. | :ref:`Texture<class_Texture>` | :ref:`anim_speed_curve<class_ParticlesMaterial_anim_speed_curve>` |
  36. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  37. | :ref:`float<class_float>` | :ref:`anim_speed_random<class_ParticlesMaterial_anim_speed_random>` |
  38. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  39. | :ref:`Color<class_Color>` | :ref:`color<class_ParticlesMaterial_color>` |
  40. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  41. | :ref:`Texture<class_Texture>` | :ref:`color_ramp<class_ParticlesMaterial_color_ramp>` |
  42. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  43. | :ref:`float<class_float>` | :ref:`damping<class_ParticlesMaterial_damping>` |
  44. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  45. | :ref:`Texture<class_Texture>` | :ref:`damping_curve<class_ParticlesMaterial_damping_curve>` |
  46. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  47. | :ref:`float<class_float>` | :ref:`damping_random<class_ParticlesMaterial_damping_random>` |
  48. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  49. | :ref:`Vector3<class_Vector3>` | :ref:`emission_box_extents<class_ParticlesMaterial_emission_box_extents>` |
  50. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  51. | :ref:`Texture<class_Texture>` | :ref:`emission_color_texture<class_ParticlesMaterial_emission_color_texture>` |
  52. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  53. | :ref:`Texture<class_Texture>` | :ref:`emission_normal_texture<class_ParticlesMaterial_emission_normal_texture>` |
  54. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  55. | :ref:`int<class_int>` | :ref:`emission_point_count<class_ParticlesMaterial_emission_point_count>` |
  56. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  57. | :ref:`Texture<class_Texture>` | :ref:`emission_point_texture<class_ParticlesMaterial_emission_point_texture>` |
  58. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  59. | :ref:`EmissionShape<enum_ParticlesMaterial_EmissionShape>` | :ref:`emission_shape<class_ParticlesMaterial_emission_shape>` |
  60. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  61. | :ref:`float<class_float>` | :ref:`emission_sphere_radius<class_ParticlesMaterial_emission_sphere_radius>` |
  62. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  63. | :ref:`bool<class_bool>` | :ref:`flag_align_y<class_ParticlesMaterial_flag_align_y>` |
  64. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  65. | :ref:`bool<class_bool>` | :ref:`flag_disable_z<class_ParticlesMaterial_flag_disable_z>` |
  66. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  67. | :ref:`bool<class_bool>` | :ref:`flag_rotate_y<class_ParticlesMaterial_flag_rotate_y>` |
  68. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  69. | :ref:`float<class_float>` | :ref:`flatness<class_ParticlesMaterial_flatness>` |
  70. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  71. | :ref:`Vector3<class_Vector3>` | :ref:`gravity<class_ParticlesMaterial_gravity>` |
  72. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  73. | :ref:`float<class_float>` | :ref:`hue_variation<class_ParticlesMaterial_hue_variation>` |
  74. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  75. | :ref:`Texture<class_Texture>` | :ref:`hue_variation_curve<class_ParticlesMaterial_hue_variation_curve>` |
  76. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  77. | :ref:`float<class_float>` | :ref:`hue_variation_random<class_ParticlesMaterial_hue_variation_random>` |
  78. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  79. | :ref:`float<class_float>` | :ref:`initial_velocity<class_ParticlesMaterial_initial_velocity>` |
  80. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  81. | :ref:`float<class_float>` | :ref:`initial_velocity_random<class_ParticlesMaterial_initial_velocity_random>` |
  82. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  83. | :ref:`float<class_float>` | :ref:`linear_accel<class_ParticlesMaterial_linear_accel>` |
  84. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  85. | :ref:`Texture<class_Texture>` | :ref:`linear_accel_curve<class_ParticlesMaterial_linear_accel_curve>` |
  86. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  87. | :ref:`float<class_float>` | :ref:`linear_accel_random<class_ParticlesMaterial_linear_accel_random>` |
  88. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  89. | :ref:`float<class_float>` | :ref:`orbit_velocity<class_ParticlesMaterial_orbit_velocity>` |
  90. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  91. | :ref:`Texture<class_Texture>` | :ref:`orbit_velocity_curve<class_ParticlesMaterial_orbit_velocity_curve>` |
  92. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  93. | :ref:`float<class_float>` | :ref:`orbit_velocity_random<class_ParticlesMaterial_orbit_velocity_random>` |
  94. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  95. | :ref:`float<class_float>` | :ref:`radial_accel<class_ParticlesMaterial_radial_accel>` |
  96. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  97. | :ref:`Texture<class_Texture>` | :ref:`radial_accel_curve<class_ParticlesMaterial_radial_accel_curve>` |
  98. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  99. | :ref:`float<class_float>` | :ref:`radial_accel_random<class_ParticlesMaterial_radial_accel_random>` |
  100. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  101. | :ref:`float<class_float>` | :ref:`scale<class_ParticlesMaterial_scale>` |
  102. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  103. | :ref:`Texture<class_Texture>` | :ref:`scale_curve<class_ParticlesMaterial_scale_curve>` |
  104. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  105. | :ref:`float<class_float>` | :ref:`scale_random<class_ParticlesMaterial_scale_random>` |
  106. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  107. | :ref:`float<class_float>` | :ref:`spread<class_ParticlesMaterial_spread>` |
  108. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  109. | :ref:`float<class_float>` | :ref:`tangential_accel<class_ParticlesMaterial_tangential_accel>` |
  110. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  111. | :ref:`Texture<class_Texture>` | :ref:`tangential_accel_curve<class_ParticlesMaterial_tangential_accel_curve>` |
  112. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  113. | :ref:`float<class_float>` | :ref:`tangential_accel_random<class_ParticlesMaterial_tangential_accel_random>` |
  114. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  115. | :ref:`GradientTexture<class_GradientTexture>` | :ref:`trail_color_modifier<class_ParticlesMaterial_trail_color_modifier>` |
  116. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  117. | :ref:`int<class_int>` | :ref:`trail_divisor<class_ParticlesMaterial_trail_divisor>` |
  118. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  119. | :ref:`CurveTexture<class_CurveTexture>` | :ref:`trail_size_modifier<class_ParticlesMaterial_trail_size_modifier>` |
  120. +------------------------------------------------------------+---------------------------------------------------------------------------------+
  121. Enumerations
  122. ------------
  123. .. _enum_ParticlesMaterial_Flags:
  124. enum **Flags**:
  125. - **FLAG_ALIGN_Y_TO_VELOCITY** = **0** --- Use with :ref:`set_flag<class_ParticlesMaterial_set_flag>` to set :ref:`flag_align_y<class_ParticlesMaterial_flag_align_y>`.
  126. - **FLAG_ROTATE_Y** = **1** --- Use with :ref:`set_flag<class_ParticlesMaterial_set_flag>` to set :ref:`flag_rotate_y<class_ParticlesMaterial_flag_rotate_y>`
  127. - **FLAG_MAX** = **3**
  128. .. _enum_ParticlesMaterial_Parameter:
  129. enum **Parameter**:
  130. - **PARAM_INITIAL_LINEAR_VELOCITY** = **0** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set initial velocity properties.
  131. - **PARAM_ANGULAR_VELOCITY** = **1** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set angular velocity properties.
  132. - **PARAM_ORBIT_VELOCITY** = **2** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set orbital_velocity properties.
  133. - **PARAM_LINEAR_ACCEL** = **3** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set linear acceleration properties.
  134. - **PARAM_RADIAL_ACCEL** = **4** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set radial acceleration properties.
  135. - **PARAM_TANGENTIAL_ACCEL** = **5** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set tangential acceleration properties.
  136. - **PARAM_DAMPING** = **6** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set damping properties.
  137. - **PARAM_ANGLE** = **7** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set angle properties.
  138. - **PARAM_SCALE** = **8** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set scale properties.
  139. - **PARAM_HUE_VARIATION** = **9** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set hue_variation properties.
  140. - **PARAM_ANIM_SPEED** = **10** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set animation speed properties.
  141. - **PARAM_ANIM_OFFSET** = **11** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set animation offset properties.
  142. - **PARAM_MAX** = **12**
  143. .. _enum_ParticlesMaterial_EmissionShape:
  144. enum **EmissionShape**:
  145. - **EMISSION_SHAPE_POINT** = **0** --- All particles will be emitted from a single point.
  146. - **EMISSION_SHAPE_SPHERE** = **1** --- Particles will be emitted in the volume of a sphere.
  147. - **EMISSION_SHAPE_BOX** = **2** --- Particles will be emitted in the volume of a box.
  148. - **EMISSION_SHAPE_POINTS** = **3**
  149. - **EMISSION_SHAPE_DIRECTED_POINTS** = **4**
  150. Description
  151. -----------
  152. ParticlesMaterial defines particle properties and behavior. It is used in the ``process_material`` of :ref:`Particles<class_Particles>` and :ref:`Particles2D<class_Particles2D>` emitter nodes.
  153. Some of this material's properties are applied to each particle when emitted, while others can have a :ref:`CurveTexture<class_CurveTexture>` applied to vary values over the lifetime of the particle.
  154. Property Descriptions
  155. ---------------------
  156. .. _class_ParticlesMaterial_angle:
  157. - :ref:`float<class_float>` **angle**
  158. +----------+------------------+
  159. | *Setter* | set_param(value) |
  160. +----------+------------------+
  161. | *Getter* | get_param() |
  162. +----------+------------------+
  163. Initial rotation applied to each particle.
  164. .. _class_ParticlesMaterial_angle_curve:
  165. - :ref:`Texture<class_Texture>` **angle_curve**
  166. +----------+--------------------------+
  167. | *Setter* | set_param_texture(value) |
  168. +----------+--------------------------+
  169. | *Getter* | get_param_texture() |
  170. +----------+--------------------------+
  171. Each particle's rotation will be animated along this :ref:`CurveTexture<class_CurveTexture>`.
  172. .. _class_ParticlesMaterial_angle_random:
  173. - :ref:`float<class_float>` **angle_random**
  174. +----------+-----------------------------+
  175. | *Setter* | set_param_randomness(value) |
  176. +----------+-----------------------------+
  177. | *Getter* | get_param_randomness() |
  178. +----------+-----------------------------+
  179. Rotation randomness ratio. Default value: ``0``.
  180. .. _class_ParticlesMaterial_angular_velocity:
  181. - :ref:`float<class_float>` **angular_velocity**
  182. +----------+------------------+
  183. | *Setter* | set_param(value) |
  184. +----------+------------------+
  185. | *Getter* | get_param() |
  186. +----------+------------------+
  187. Initial angular velocity applied to each particle.
  188. .. _class_ParticlesMaterial_angular_velocity_curve:
  189. - :ref:`Texture<class_Texture>` **angular_velocity_curve**
  190. +----------+--------------------------+
  191. | *Setter* | set_param_texture(value) |
  192. +----------+--------------------------+
  193. | *Getter* | get_param_texture() |
  194. +----------+--------------------------+
  195. Each particle's angular velocity will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  196. .. _class_ParticlesMaterial_angular_velocity_random:
  197. - :ref:`float<class_float>` **angular_velocity_random**
  198. +----------+-----------------------------+
  199. | *Setter* | set_param_randomness(value) |
  200. +----------+-----------------------------+
  201. | *Getter* | get_param_randomness() |
  202. +----------+-----------------------------+
  203. Angular velocity randomness ratio. Default value: ``0``.
  204. .. _class_ParticlesMaterial_anim_offset:
  205. - :ref:`float<class_float>` **anim_offset**
  206. +----------+------------------+
  207. | *Setter* | set_param(value) |
  208. +----------+------------------+
  209. | *Getter* | get_param() |
  210. +----------+------------------+
  211. Particle animation offset.
  212. .. _class_ParticlesMaterial_anim_offset_curve:
  213. - :ref:`Texture<class_Texture>` **anim_offset_curve**
  214. +----------+--------------------------+
  215. | *Setter* | set_param_texture(value) |
  216. +----------+--------------------------+
  217. | *Getter* | get_param_texture() |
  218. +----------+--------------------------+
  219. Each particle's animation offset will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  220. .. _class_ParticlesMaterial_anim_offset_random:
  221. - :ref:`float<class_float>` **anim_offset_random**
  222. +----------+-----------------------------+
  223. | *Setter* | set_param_randomness(value) |
  224. +----------+-----------------------------+
  225. | *Getter* | get_param_randomness() |
  226. +----------+-----------------------------+
  227. Animation offset randomness ratio. Default value: ``0``.
  228. .. _class_ParticlesMaterial_anim_speed:
  229. - :ref:`float<class_float>` **anim_speed**
  230. +----------+------------------+
  231. | *Setter* | set_param(value) |
  232. +----------+------------------+
  233. | *Getter* | get_param() |
  234. +----------+------------------+
  235. Particle animation speed.
  236. .. _class_ParticlesMaterial_anim_speed_curve:
  237. - :ref:`Texture<class_Texture>` **anim_speed_curve**
  238. +----------+--------------------------+
  239. | *Setter* | set_param_texture(value) |
  240. +----------+--------------------------+
  241. | *Getter* | get_param_texture() |
  242. +----------+--------------------------+
  243. Each particle's animation speed will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  244. .. _class_ParticlesMaterial_anim_speed_random:
  245. - :ref:`float<class_float>` **anim_speed_random**
  246. +----------+-----------------------------+
  247. | *Setter* | set_param_randomness(value) |
  248. +----------+-----------------------------+
  249. | *Getter* | get_param_randomness() |
  250. +----------+-----------------------------+
  251. Animation speed randomness ratio. Default value: ``0``.
  252. .. _class_ParticlesMaterial_color:
  253. - :ref:`Color<class_Color>` **color**
  254. +----------+------------------+
  255. | *Setter* | set_color(value) |
  256. +----------+------------------+
  257. | *Getter* | get_color() |
  258. +----------+------------------+
  259. Each particle's initial color. If the Particle2D's ``texture`` is defined, it will be multiplied by this color.
  260. .. _class_ParticlesMaterial_color_ramp:
  261. - :ref:`Texture<class_Texture>` **color_ramp**
  262. +----------+-----------------------+
  263. | *Setter* | set_color_ramp(value) |
  264. +----------+-----------------------+
  265. | *Getter* | get_color_ramp() |
  266. +----------+-----------------------+
  267. Each particle's color will vary along this :ref:`GradientTexture<class_GradientTexture>`.
  268. .. _class_ParticlesMaterial_damping:
  269. - :ref:`float<class_float>` **damping**
  270. +----------+------------------+
  271. | *Setter* | set_param(value) |
  272. +----------+------------------+
  273. | *Getter* | get_param() |
  274. +----------+------------------+
  275. The rate at which particles lose velocity.
  276. .. _class_ParticlesMaterial_damping_curve:
  277. - :ref:`Texture<class_Texture>` **damping_curve**
  278. +----------+--------------------------+
  279. | *Setter* | set_param_texture(value) |
  280. +----------+--------------------------+
  281. | *Getter* | get_param_texture() |
  282. +----------+--------------------------+
  283. Damping will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  284. .. _class_ParticlesMaterial_damping_random:
  285. - :ref:`float<class_float>` **damping_random**
  286. +----------+-----------------------------+
  287. | *Setter* | set_param_randomness(value) |
  288. +----------+-----------------------------+
  289. | *Getter* | get_param_randomness() |
  290. +----------+-----------------------------+
  291. Damping randomness ratio. Default value: ``0``.
  292. .. _class_ParticlesMaterial_emission_box_extents:
  293. - :ref:`Vector3<class_Vector3>` **emission_box_extents**
  294. +----------+---------------------------------+
  295. | *Setter* | set_emission_box_extents(value) |
  296. +----------+---------------------------------+
  297. | *Getter* | get_emission_box_extents() |
  298. +----------+---------------------------------+
  299. The box's extents if ``emission_shape`` is set to ``EMISSION_SHAPE_BOX``.
  300. .. _class_ParticlesMaterial_emission_color_texture:
  301. - :ref:`Texture<class_Texture>` **emission_color_texture**
  302. +----------+-----------------------------------+
  303. | *Setter* | set_emission_color_texture(value) |
  304. +----------+-----------------------------------+
  305. | *Getter* | get_emission_color_texture() |
  306. +----------+-----------------------------------+
  307. .. _class_ParticlesMaterial_emission_normal_texture:
  308. - :ref:`Texture<class_Texture>` **emission_normal_texture**
  309. +----------+------------------------------------+
  310. | *Setter* | set_emission_normal_texture(value) |
  311. +----------+------------------------------------+
  312. | *Getter* | get_emission_normal_texture() |
  313. +----------+------------------------------------+
  314. .. _class_ParticlesMaterial_emission_point_count:
  315. - :ref:`int<class_int>` **emission_point_count**
  316. +----------+---------------------------------+
  317. | *Setter* | set_emission_point_count(value) |
  318. +----------+---------------------------------+
  319. | *Getter* | get_emission_point_count() |
  320. +----------+---------------------------------+
  321. The number of emission points if ``emission_shape`` is set to ``EMISSION_SHAPE_POINTS`` or ``EMISSION_SHAPE_DIRECTED_POINTS``.
  322. .. _class_ParticlesMaterial_emission_point_texture:
  323. - :ref:`Texture<class_Texture>` **emission_point_texture**
  324. +----------+-----------------------------------+
  325. | *Setter* | set_emission_point_texture(value) |
  326. +----------+-----------------------------------+
  327. | *Getter* | get_emission_point_texture() |
  328. +----------+-----------------------------------+
  329. .. _class_ParticlesMaterial_emission_shape:
  330. - :ref:`EmissionShape<enum_ParticlesMaterial_EmissionShape>` **emission_shape**
  331. +----------+---------------------------+
  332. | *Setter* | set_emission_shape(value) |
  333. +----------+---------------------------+
  334. | *Getter* | get_emission_shape() |
  335. +----------+---------------------------+
  336. Particles will be emitted inside this region. Use ``EMISSION_SHAPE_*`` constants for values. Default value: ``EMISSION_SHAPE_POINT``.
  337. .. _class_ParticlesMaterial_emission_sphere_radius:
  338. - :ref:`float<class_float>` **emission_sphere_radius**
  339. +----------+-----------------------------------+
  340. | *Setter* | set_emission_sphere_radius(value) |
  341. +----------+-----------------------------------+
  342. | *Getter* | get_emission_sphere_radius() |
  343. +----------+-----------------------------------+
  344. The sphere's radius if ``emission_shape`` is set to ``EMISSION_SHAPE_SPHERE``.
  345. .. _class_ParticlesMaterial_flag_align_y:
  346. - :ref:`bool<class_bool>` **flag_align_y**
  347. +----------+-----------------+
  348. | *Setter* | set_flag(value) |
  349. +----------+-----------------+
  350. | *Getter* | get_flag() |
  351. +----------+-----------------+
  352. .. _class_ParticlesMaterial_flag_disable_z:
  353. - :ref:`bool<class_bool>` **flag_disable_z**
  354. +----------+-----------------+
  355. | *Setter* | set_flag(value) |
  356. +----------+-----------------+
  357. | *Getter* | get_flag() |
  358. +----------+-----------------+
  359. If ``true`` particles will not move on the z axis. Default value: ``true`` for :ref:`Particles2D<class_Particles2D>`, ``false`` for :ref:`Particles<class_Particles>`.
  360. .. _class_ParticlesMaterial_flag_rotate_y:
  361. - :ref:`bool<class_bool>` **flag_rotate_y**
  362. +----------+-----------------+
  363. | *Setter* | set_flag(value) |
  364. +----------+-----------------+
  365. | *Getter* | get_flag() |
  366. +----------+-----------------+
  367. .. _class_ParticlesMaterial_flatness:
  368. - :ref:`float<class_float>` **flatness**
  369. +----------+---------------------+
  370. | *Setter* | set_flatness(value) |
  371. +----------+---------------------+
  372. | *Getter* | get_flatness() |
  373. +----------+---------------------+
  374. .. _class_ParticlesMaterial_gravity:
  375. - :ref:`Vector3<class_Vector3>` **gravity**
  376. +----------+--------------------+
  377. | *Setter* | set_gravity(value) |
  378. +----------+--------------------+
  379. | *Getter* | get_gravity() |
  380. +----------+--------------------+
  381. Gravity applied to every particle. Default value: ``(0, 98, 0)``.
  382. .. _class_ParticlesMaterial_hue_variation:
  383. - :ref:`float<class_float>` **hue_variation**
  384. +----------+------------------+
  385. | *Setter* | set_param(value) |
  386. +----------+------------------+
  387. | *Getter* | get_param() |
  388. +----------+------------------+
  389. Initial hue variation applied to each particle.
  390. .. _class_ParticlesMaterial_hue_variation_curve:
  391. - :ref:`Texture<class_Texture>` **hue_variation_curve**
  392. +----------+--------------------------+
  393. | *Setter* | set_param_texture(value) |
  394. +----------+--------------------------+
  395. | *Getter* | get_param_texture() |
  396. +----------+--------------------------+
  397. Each particle's hue will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  398. .. _class_ParticlesMaterial_hue_variation_random:
  399. - :ref:`float<class_float>` **hue_variation_random**
  400. +----------+-----------------------------+
  401. | *Setter* | set_param_randomness(value) |
  402. +----------+-----------------------------+
  403. | *Getter* | get_param_randomness() |
  404. +----------+-----------------------------+
  405. Hue variation randomness ratio. Default value: ``0``.
  406. .. _class_ParticlesMaterial_initial_velocity:
  407. - :ref:`float<class_float>` **initial_velocity**
  408. +----------+------------------+
  409. | *Setter* | set_param(value) |
  410. +----------+------------------+
  411. | *Getter* | get_param() |
  412. +----------+------------------+
  413. Initial velocity for each particle.
  414. .. _class_ParticlesMaterial_initial_velocity_random:
  415. - :ref:`float<class_float>` **initial_velocity_random**
  416. +----------+-----------------------------+
  417. | *Setter* | set_param_randomness(value) |
  418. +----------+-----------------------------+
  419. | *Getter* | get_param_randomness() |
  420. +----------+-----------------------------+
  421. Initial velocity randomness ratio. Default value: ``0``.
  422. .. _class_ParticlesMaterial_linear_accel:
  423. - :ref:`float<class_float>` **linear_accel**
  424. +----------+------------------+
  425. | *Setter* | set_param(value) |
  426. +----------+------------------+
  427. | *Getter* | get_param() |
  428. +----------+------------------+
  429. Linear acceleration applied to each particle.
  430. .. _class_ParticlesMaterial_linear_accel_curve:
  431. - :ref:`Texture<class_Texture>` **linear_accel_curve**
  432. +----------+--------------------------+
  433. | *Setter* | set_param_texture(value) |
  434. +----------+--------------------------+
  435. | *Getter* | get_param_texture() |
  436. +----------+--------------------------+
  437. Each particle's linear acceleration will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  438. .. _class_ParticlesMaterial_linear_accel_random:
  439. - :ref:`float<class_float>` **linear_accel_random**
  440. +----------+-----------------------------+
  441. | *Setter* | set_param_randomness(value) |
  442. +----------+-----------------------------+
  443. | *Getter* | get_param_randomness() |
  444. +----------+-----------------------------+
  445. Linear acceleration randomness ratio. Default value: ``0``.
  446. .. _class_ParticlesMaterial_orbit_velocity:
  447. - :ref:`float<class_float>` **orbit_velocity**
  448. +----------+------------------+
  449. | *Setter* | set_param(value) |
  450. +----------+------------------+
  451. | *Getter* | get_param() |
  452. +----------+------------------+
  453. Orbital velocity applied to each particle.
  454. .. _class_ParticlesMaterial_orbit_velocity_curve:
  455. - :ref:`Texture<class_Texture>` **orbit_velocity_curve**
  456. +----------+--------------------------+
  457. | *Setter* | set_param_texture(value) |
  458. +----------+--------------------------+
  459. | *Getter* | get_param_texture() |
  460. +----------+--------------------------+
  461. Each particle's orbital velocity will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  462. .. _class_ParticlesMaterial_orbit_velocity_random:
  463. - :ref:`float<class_float>` **orbit_velocity_random**
  464. +----------+-----------------------------+
  465. | *Setter* | set_param_randomness(value) |
  466. +----------+-----------------------------+
  467. | *Getter* | get_param_randomness() |
  468. +----------+-----------------------------+
  469. Orbital velocity randomness ratio. Default value: ``0``.
  470. .. _class_ParticlesMaterial_radial_accel:
  471. - :ref:`float<class_float>` **radial_accel**
  472. +----------+------------------+
  473. | *Setter* | set_param(value) |
  474. +----------+------------------+
  475. | *Getter* | get_param() |
  476. +----------+------------------+
  477. Radial acceleration applied to each particle.
  478. .. _class_ParticlesMaterial_radial_accel_curve:
  479. - :ref:`Texture<class_Texture>` **radial_accel_curve**
  480. +----------+--------------------------+
  481. | *Setter* | set_param_texture(value) |
  482. +----------+--------------------------+
  483. | *Getter* | get_param_texture() |
  484. +----------+--------------------------+
  485. Each particle's radial acceleration will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  486. .. _class_ParticlesMaterial_radial_accel_random:
  487. - :ref:`float<class_float>` **radial_accel_random**
  488. +----------+-----------------------------+
  489. | *Setter* | set_param_randomness(value) |
  490. +----------+-----------------------------+
  491. | *Getter* | get_param_randomness() |
  492. +----------+-----------------------------+
  493. Radial acceleration randomness ratio. Default value: ``0``.
  494. .. _class_ParticlesMaterial_scale:
  495. - :ref:`float<class_float>` **scale**
  496. +----------+------------------+
  497. | *Setter* | set_param(value) |
  498. +----------+------------------+
  499. | *Getter* | get_param() |
  500. +----------+------------------+
  501. Initial scale applied to each particle.
  502. .. _class_ParticlesMaterial_scale_curve:
  503. - :ref:`Texture<class_Texture>` **scale_curve**
  504. +----------+--------------------------+
  505. | *Setter* | set_param_texture(value) |
  506. +----------+--------------------------+
  507. | *Getter* | get_param_texture() |
  508. +----------+--------------------------+
  509. Each particle's scale will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  510. .. _class_ParticlesMaterial_scale_random:
  511. - :ref:`float<class_float>` **scale_random**
  512. +----------+-----------------------------+
  513. | *Setter* | set_param_randomness(value) |
  514. +----------+-----------------------------+
  515. | *Getter* | get_param_randomness() |
  516. +----------+-----------------------------+
  517. Scale randomness ratio. Default value: ``0``.
  518. .. _class_ParticlesMaterial_spread:
  519. - :ref:`float<class_float>` **spread**
  520. +----------+-------------------+
  521. | *Setter* | set_spread(value) |
  522. +----------+-------------------+
  523. | *Getter* | get_spread() |
  524. +----------+-------------------+
  525. Each particle's initial direction range from ``+spread`` to ``-spread`` degrees. Default value: ``45``.
  526. .. _class_ParticlesMaterial_tangential_accel:
  527. - :ref:`float<class_float>` **tangential_accel**
  528. +----------+------------------+
  529. | *Setter* | set_param(value) |
  530. +----------+------------------+
  531. | *Getter* | get_param() |
  532. +----------+------------------+
  533. Tangential acceleration applied to each particle. Tangential acceleration is perpendicular to the particle's velocity.
  534. .. _class_ParticlesMaterial_tangential_accel_curve:
  535. - :ref:`Texture<class_Texture>` **tangential_accel_curve**
  536. +----------+--------------------------+
  537. | *Setter* | set_param_texture(value) |
  538. +----------+--------------------------+
  539. | *Getter* | get_param_texture() |
  540. +----------+--------------------------+
  541. Each particle's tangential acceleration will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  542. .. _class_ParticlesMaterial_tangential_accel_random:
  543. - :ref:`float<class_float>` **tangential_accel_random**
  544. +----------+-----------------------------+
  545. | *Setter* | set_param_randomness(value) |
  546. +----------+-----------------------------+
  547. | *Getter* | get_param_randomness() |
  548. +----------+-----------------------------+
  549. Tangential acceleration randomness ratio. Default value: ``0``.
  550. .. _class_ParticlesMaterial_trail_color_modifier:
  551. - :ref:`GradientTexture<class_GradientTexture>` **trail_color_modifier**
  552. +----------+---------------------------------+
  553. | *Setter* | set_trail_color_modifier(value) |
  554. +----------+---------------------------------+
  555. | *Getter* | get_trail_color_modifier() |
  556. +----------+---------------------------------+
  557. Trail particles' color will vary along this :ref:`GradientTexture<class_GradientTexture>`.
  558. .. _class_ParticlesMaterial_trail_divisor:
  559. - :ref:`int<class_int>` **trail_divisor**
  560. +----------+--------------------------+
  561. | *Setter* | set_trail_divisor(value) |
  562. +----------+--------------------------+
  563. | *Getter* | get_trail_divisor() |
  564. +----------+--------------------------+
  565. Emitter will emit ``amount`` divided by ``trail_divisor`` particles. The remaining particles will be used as trail(s).
  566. .. _class_ParticlesMaterial_trail_size_modifier:
  567. - :ref:`CurveTexture<class_CurveTexture>` **trail_size_modifier**
  568. +----------+--------------------------------+
  569. | *Setter* | set_trail_size_modifier(value) |
  570. +----------+--------------------------------+
  571. | *Getter* | get_trail_size_modifier() |
  572. +----------+--------------------------------+
  573. Trail particles' size will vary along this :ref:`CurveTexture<class_CurveTexture>`.