class_particlesmaterial.rst 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862
  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_property_angle>` |
  16. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  17. | :ref:`Texture<class_Texture>` | :ref:`angle_curve<class_ParticlesMaterial_property_angle_curve>` |
  18. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  19. | :ref:`float<class_float>` | :ref:`angle_random<class_ParticlesMaterial_property_angle_random>` |
  20. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  21. | :ref:`float<class_float>` | :ref:`angular_velocity<class_ParticlesMaterial_property_angular_velocity>` |
  22. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  23. | :ref:`Texture<class_Texture>` | :ref:`angular_velocity_curve<class_ParticlesMaterial_property_angular_velocity_curve>` |
  24. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  25. | :ref:`float<class_float>` | :ref:`angular_velocity_random<class_ParticlesMaterial_property_angular_velocity_random>` |
  26. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  27. | :ref:`float<class_float>` | :ref:`anim_offset<class_ParticlesMaterial_property_anim_offset>` |
  28. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  29. | :ref:`Texture<class_Texture>` | :ref:`anim_offset_curve<class_ParticlesMaterial_property_anim_offset_curve>` |
  30. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  31. | :ref:`float<class_float>` | :ref:`anim_offset_random<class_ParticlesMaterial_property_anim_offset_random>` |
  32. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  33. | :ref:`float<class_float>` | :ref:`anim_speed<class_ParticlesMaterial_property_anim_speed>` |
  34. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  35. | :ref:`Texture<class_Texture>` | :ref:`anim_speed_curve<class_ParticlesMaterial_property_anim_speed_curve>` |
  36. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  37. | :ref:`float<class_float>` | :ref:`anim_speed_random<class_ParticlesMaterial_property_anim_speed_random>` |
  38. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  39. | :ref:`Color<class_Color>` | :ref:`color<class_ParticlesMaterial_property_color>` |
  40. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  41. | :ref:`Texture<class_Texture>` | :ref:`color_ramp<class_ParticlesMaterial_property_color_ramp>` |
  42. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  43. | :ref:`float<class_float>` | :ref:`damping<class_ParticlesMaterial_property_damping>` |
  44. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  45. | :ref:`Texture<class_Texture>` | :ref:`damping_curve<class_ParticlesMaterial_property_damping_curve>` |
  46. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  47. | :ref:`float<class_float>` | :ref:`damping_random<class_ParticlesMaterial_property_damping_random>` |
  48. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  49. | :ref:`Vector3<class_Vector3>` | :ref:`emission_box_extents<class_ParticlesMaterial_property_emission_box_extents>` |
  50. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  51. | :ref:`Texture<class_Texture>` | :ref:`emission_color_texture<class_ParticlesMaterial_property_emission_color_texture>` |
  52. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  53. | :ref:`Texture<class_Texture>` | :ref:`emission_normal_texture<class_ParticlesMaterial_property_emission_normal_texture>` |
  54. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  55. | :ref:`int<class_int>` | :ref:`emission_point_count<class_ParticlesMaterial_property_emission_point_count>` |
  56. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  57. | :ref:`Texture<class_Texture>` | :ref:`emission_point_texture<class_ParticlesMaterial_property_emission_point_texture>` |
  58. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  59. | :ref:`EmissionShape<enum_ParticlesMaterial_EmissionShape>` | :ref:`emission_shape<class_ParticlesMaterial_property_emission_shape>` |
  60. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  61. | :ref:`float<class_float>` | :ref:`emission_sphere_radius<class_ParticlesMaterial_property_emission_sphere_radius>` |
  62. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  63. | :ref:`bool<class_bool>` | :ref:`flag_align_y<class_ParticlesMaterial_property_flag_align_y>` |
  64. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  65. | :ref:`bool<class_bool>` | :ref:`flag_disable_z<class_ParticlesMaterial_property_flag_disable_z>` |
  66. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  67. | :ref:`bool<class_bool>` | :ref:`flag_rotate_y<class_ParticlesMaterial_property_flag_rotate_y>` |
  68. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  69. | :ref:`float<class_float>` | :ref:`flatness<class_ParticlesMaterial_property_flatness>` |
  70. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  71. | :ref:`Vector3<class_Vector3>` | :ref:`gravity<class_ParticlesMaterial_property_gravity>` |
  72. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  73. | :ref:`float<class_float>` | :ref:`hue_variation<class_ParticlesMaterial_property_hue_variation>` |
  74. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  75. | :ref:`Texture<class_Texture>` | :ref:`hue_variation_curve<class_ParticlesMaterial_property_hue_variation_curve>` |
  76. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  77. | :ref:`float<class_float>` | :ref:`hue_variation_random<class_ParticlesMaterial_property_hue_variation_random>` |
  78. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  79. | :ref:`float<class_float>` | :ref:`initial_velocity<class_ParticlesMaterial_property_initial_velocity>` |
  80. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  81. | :ref:`float<class_float>` | :ref:`initial_velocity_random<class_ParticlesMaterial_property_initial_velocity_random>` |
  82. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  83. | :ref:`float<class_float>` | :ref:`linear_accel<class_ParticlesMaterial_property_linear_accel>` |
  84. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  85. | :ref:`Texture<class_Texture>` | :ref:`linear_accel_curve<class_ParticlesMaterial_property_linear_accel_curve>` |
  86. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  87. | :ref:`float<class_float>` | :ref:`linear_accel_random<class_ParticlesMaterial_property_linear_accel_random>` |
  88. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  89. | :ref:`float<class_float>` | :ref:`orbit_velocity<class_ParticlesMaterial_property_orbit_velocity>` |
  90. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  91. | :ref:`Texture<class_Texture>` | :ref:`orbit_velocity_curve<class_ParticlesMaterial_property_orbit_velocity_curve>` |
  92. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  93. | :ref:`float<class_float>` | :ref:`orbit_velocity_random<class_ParticlesMaterial_property_orbit_velocity_random>` |
  94. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  95. | :ref:`float<class_float>` | :ref:`radial_accel<class_ParticlesMaterial_property_radial_accel>` |
  96. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  97. | :ref:`Texture<class_Texture>` | :ref:`radial_accel_curve<class_ParticlesMaterial_property_radial_accel_curve>` |
  98. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  99. | :ref:`float<class_float>` | :ref:`radial_accel_random<class_ParticlesMaterial_property_radial_accel_random>` |
  100. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  101. | :ref:`float<class_float>` | :ref:`scale<class_ParticlesMaterial_property_scale>` |
  102. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  103. | :ref:`Texture<class_Texture>` | :ref:`scale_curve<class_ParticlesMaterial_property_scale_curve>` |
  104. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  105. | :ref:`float<class_float>` | :ref:`scale_random<class_ParticlesMaterial_property_scale_random>` |
  106. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  107. | :ref:`float<class_float>` | :ref:`spread<class_ParticlesMaterial_property_spread>` |
  108. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  109. | :ref:`float<class_float>` | :ref:`tangential_accel<class_ParticlesMaterial_property_tangential_accel>` |
  110. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  111. | :ref:`Texture<class_Texture>` | :ref:`tangential_accel_curve<class_ParticlesMaterial_property_tangential_accel_curve>` |
  112. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  113. | :ref:`float<class_float>` | :ref:`tangential_accel_random<class_ParticlesMaterial_property_tangential_accel_random>` |
  114. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  115. | :ref:`GradientTexture<class_GradientTexture>` | :ref:`trail_color_modifier<class_ParticlesMaterial_property_trail_color_modifier>` |
  116. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  117. | :ref:`int<class_int>` | :ref:`trail_divisor<class_ParticlesMaterial_property_trail_divisor>` |
  118. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  119. | :ref:`CurveTexture<class_CurveTexture>` | :ref:`trail_size_modifier<class_ParticlesMaterial_property_trail_size_modifier>` |
  120. +------------------------------------------------------------+------------------------------------------------------------------------------------------+
  121. Enumerations
  122. ------------
  123. .. _enum_ParticlesMaterial_Parameter:
  124. .. _class_ParticlesMaterial_constant_PARAM_INITIAL_LINEAR_VELOCITY:
  125. .. _class_ParticlesMaterial_constant_PARAM_ANGULAR_VELOCITY:
  126. .. _class_ParticlesMaterial_constant_PARAM_ORBIT_VELOCITY:
  127. .. _class_ParticlesMaterial_constant_PARAM_LINEAR_ACCEL:
  128. .. _class_ParticlesMaterial_constant_PARAM_RADIAL_ACCEL:
  129. .. _class_ParticlesMaterial_constant_PARAM_TANGENTIAL_ACCEL:
  130. .. _class_ParticlesMaterial_constant_PARAM_DAMPING:
  131. .. _class_ParticlesMaterial_constant_PARAM_ANGLE:
  132. .. _class_ParticlesMaterial_constant_PARAM_SCALE:
  133. .. _class_ParticlesMaterial_constant_PARAM_HUE_VARIATION:
  134. .. _class_ParticlesMaterial_constant_PARAM_ANIM_SPEED:
  135. .. _class_ParticlesMaterial_constant_PARAM_ANIM_OFFSET:
  136. .. _class_ParticlesMaterial_constant_PARAM_MAX:
  137. enum **Parameter**:
  138. - **PARAM_INITIAL_LINEAR_VELOCITY** = **0** --- Use with :ref:`set_param<class_ParticlesMaterial_method_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_method_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set initial velocity properties.
  139. - **PARAM_ANGULAR_VELOCITY** = **1** --- Use with :ref:`set_param<class_ParticlesMaterial_method_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_method_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set angular velocity properties.
  140. - **PARAM_ORBIT_VELOCITY** = **2** --- Use with :ref:`set_param<class_ParticlesMaterial_method_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_method_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set orbital_velocity properties.
  141. - **PARAM_LINEAR_ACCEL** = **3** --- Use with :ref:`set_param<class_ParticlesMaterial_method_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_method_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set linear acceleration properties.
  142. - **PARAM_RADIAL_ACCEL** = **4** --- Use with :ref:`set_param<class_ParticlesMaterial_method_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_method_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set radial acceleration properties.
  143. - **PARAM_TANGENTIAL_ACCEL** = **5** --- Use with :ref:`set_param<class_ParticlesMaterial_method_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_method_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set tangential acceleration properties.
  144. - **PARAM_DAMPING** = **6** --- Use with :ref:`set_param<class_ParticlesMaterial_method_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_method_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set damping properties.
  145. - **PARAM_ANGLE** = **7** --- Use with :ref:`set_param<class_ParticlesMaterial_method_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_method_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set angle properties.
  146. - **PARAM_SCALE** = **8** --- Use with :ref:`set_param<class_ParticlesMaterial_method_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_method_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set scale properties.
  147. - **PARAM_HUE_VARIATION** = **9** --- Use with :ref:`set_param<class_ParticlesMaterial_method_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_method_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set hue_variation properties.
  148. - **PARAM_ANIM_SPEED** = **10** --- Use with :ref:`set_param<class_ParticlesMaterial_method_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_method_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set animation speed properties.
  149. - **PARAM_ANIM_OFFSET** = **11** --- Use with :ref:`set_param<class_ParticlesMaterial_method_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_method_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set animation offset properties.
  150. - **PARAM_MAX** = **12**
  151. .. _enum_ParticlesMaterial_Flags:
  152. .. _class_ParticlesMaterial_constant_FLAG_ALIGN_Y_TO_VELOCITY:
  153. .. _class_ParticlesMaterial_constant_FLAG_ROTATE_Y:
  154. .. _class_ParticlesMaterial_constant_FLAG_MAX:
  155. enum **Flags**:
  156. - **FLAG_ALIGN_Y_TO_VELOCITY** = **0** --- Use with :ref:`set_flag<class_ParticlesMaterial_method_set_flag>` to set :ref:`flag_align_y<class_ParticlesMaterial_property_flag_align_y>`.
  157. - **FLAG_ROTATE_Y** = **1** --- Use with :ref:`set_flag<class_ParticlesMaterial_method_set_flag>` to set :ref:`flag_rotate_y<class_ParticlesMaterial_property_flag_rotate_y>`
  158. - **FLAG_MAX** = **3**
  159. .. _enum_ParticlesMaterial_EmissionShape:
  160. .. _class_ParticlesMaterial_constant_EMISSION_SHAPE_POINT:
  161. .. _class_ParticlesMaterial_constant_EMISSION_SHAPE_SPHERE:
  162. .. _class_ParticlesMaterial_constant_EMISSION_SHAPE_BOX:
  163. .. _class_ParticlesMaterial_constant_EMISSION_SHAPE_POINTS:
  164. .. _class_ParticlesMaterial_constant_EMISSION_SHAPE_DIRECTED_POINTS:
  165. enum **EmissionShape**:
  166. - **EMISSION_SHAPE_POINT** = **0** --- All particles will be emitted from a single point.
  167. - **EMISSION_SHAPE_SPHERE** = **1** --- Particles will be emitted in the volume of a sphere.
  168. - **EMISSION_SHAPE_BOX** = **2** --- Particles will be emitted in the volume of a box.
  169. - **EMISSION_SHAPE_POINTS** = **3**
  170. - **EMISSION_SHAPE_DIRECTED_POINTS** = **4**
  171. Description
  172. -----------
  173. 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.
  174. 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.
  175. Property Descriptions
  176. ---------------------
  177. .. _class_ParticlesMaterial_property_angle:
  178. - :ref:`float<class_float>` **angle**
  179. +----------+------------------+
  180. | *Setter* | set_param(value) |
  181. +----------+------------------+
  182. | *Getter* | get_param() |
  183. +----------+------------------+
  184. Initial rotation applied to each particle.
  185. .. _class_ParticlesMaterial_property_angle_curve:
  186. - :ref:`Texture<class_Texture>` **angle_curve**
  187. +----------+--------------------------+
  188. | *Setter* | set_param_texture(value) |
  189. +----------+--------------------------+
  190. | *Getter* | get_param_texture() |
  191. +----------+--------------------------+
  192. Each particle's rotation will be animated along this :ref:`CurveTexture<class_CurveTexture>`.
  193. .. _class_ParticlesMaterial_property_angle_random:
  194. - :ref:`float<class_float>` **angle_random**
  195. +----------+-----------------------------+
  196. | *Setter* | set_param_randomness(value) |
  197. +----------+-----------------------------+
  198. | *Getter* | get_param_randomness() |
  199. +----------+-----------------------------+
  200. Rotation randomness ratio. Default value: ``0``.
  201. .. _class_ParticlesMaterial_property_angular_velocity:
  202. - :ref:`float<class_float>` **angular_velocity**
  203. +----------+------------------+
  204. | *Setter* | set_param(value) |
  205. +----------+------------------+
  206. | *Getter* | get_param() |
  207. +----------+------------------+
  208. Initial angular velocity applied to each particle.
  209. .. _class_ParticlesMaterial_property_angular_velocity_curve:
  210. - :ref:`Texture<class_Texture>` **angular_velocity_curve**
  211. +----------+--------------------------+
  212. | *Setter* | set_param_texture(value) |
  213. +----------+--------------------------+
  214. | *Getter* | get_param_texture() |
  215. +----------+--------------------------+
  216. Each particle's angular velocity will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  217. .. _class_ParticlesMaterial_property_angular_velocity_random:
  218. - :ref:`float<class_float>` **angular_velocity_random**
  219. +----------+-----------------------------+
  220. | *Setter* | set_param_randomness(value) |
  221. +----------+-----------------------------+
  222. | *Getter* | get_param_randomness() |
  223. +----------+-----------------------------+
  224. Angular velocity randomness ratio. Default value: ``0``.
  225. .. _class_ParticlesMaterial_property_anim_offset:
  226. - :ref:`float<class_float>` **anim_offset**
  227. +----------+------------------+
  228. | *Setter* | set_param(value) |
  229. +----------+------------------+
  230. | *Getter* | get_param() |
  231. +----------+------------------+
  232. Particle animation offset.
  233. .. _class_ParticlesMaterial_property_anim_offset_curve:
  234. - :ref:`Texture<class_Texture>` **anim_offset_curve**
  235. +----------+--------------------------+
  236. | *Setter* | set_param_texture(value) |
  237. +----------+--------------------------+
  238. | *Getter* | get_param_texture() |
  239. +----------+--------------------------+
  240. Each particle's animation offset will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  241. .. _class_ParticlesMaterial_property_anim_offset_random:
  242. - :ref:`float<class_float>` **anim_offset_random**
  243. +----------+-----------------------------+
  244. | *Setter* | set_param_randomness(value) |
  245. +----------+-----------------------------+
  246. | *Getter* | get_param_randomness() |
  247. +----------+-----------------------------+
  248. Animation offset randomness ratio. Default value: ``0``.
  249. .. _class_ParticlesMaterial_property_anim_speed:
  250. - :ref:`float<class_float>` **anim_speed**
  251. +----------+------------------+
  252. | *Setter* | set_param(value) |
  253. +----------+------------------+
  254. | *Getter* | get_param() |
  255. +----------+------------------+
  256. Particle animation speed.
  257. .. _class_ParticlesMaterial_property_anim_speed_curve:
  258. - :ref:`Texture<class_Texture>` **anim_speed_curve**
  259. +----------+--------------------------+
  260. | *Setter* | set_param_texture(value) |
  261. +----------+--------------------------+
  262. | *Getter* | get_param_texture() |
  263. +----------+--------------------------+
  264. Each particle's animation speed will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  265. .. _class_ParticlesMaterial_property_anim_speed_random:
  266. - :ref:`float<class_float>` **anim_speed_random**
  267. +----------+-----------------------------+
  268. | *Setter* | set_param_randomness(value) |
  269. +----------+-----------------------------+
  270. | *Getter* | get_param_randomness() |
  271. +----------+-----------------------------+
  272. Animation speed randomness ratio. Default value: ``0``.
  273. .. _class_ParticlesMaterial_property_color:
  274. - :ref:`Color<class_Color>` **color**
  275. +----------+------------------+
  276. | *Setter* | set_color(value) |
  277. +----------+------------------+
  278. | *Getter* | get_color() |
  279. +----------+------------------+
  280. Each particle's initial color. If the :ref:`Particles2D<class_Particles2D>`'s ``texture`` is defined, it will be multiplied by this color.
  281. .. _class_ParticlesMaterial_property_color_ramp:
  282. - :ref:`Texture<class_Texture>` **color_ramp**
  283. +----------+-----------------------+
  284. | *Setter* | set_color_ramp(value) |
  285. +----------+-----------------------+
  286. | *Getter* | get_color_ramp() |
  287. +----------+-----------------------+
  288. Each particle's color will vary along this :ref:`GradientTexture<class_GradientTexture>`.
  289. .. _class_ParticlesMaterial_property_damping:
  290. - :ref:`float<class_float>` **damping**
  291. +----------+------------------+
  292. | *Setter* | set_param(value) |
  293. +----------+------------------+
  294. | *Getter* | get_param() |
  295. +----------+------------------+
  296. The rate at which particles lose velocity.
  297. .. _class_ParticlesMaterial_property_damping_curve:
  298. - :ref:`Texture<class_Texture>` **damping_curve**
  299. +----------+--------------------------+
  300. | *Setter* | set_param_texture(value) |
  301. +----------+--------------------------+
  302. | *Getter* | get_param_texture() |
  303. +----------+--------------------------+
  304. Damping will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  305. .. _class_ParticlesMaterial_property_damping_random:
  306. - :ref:`float<class_float>` **damping_random**
  307. +----------+-----------------------------+
  308. | *Setter* | set_param_randomness(value) |
  309. +----------+-----------------------------+
  310. | *Getter* | get_param_randomness() |
  311. +----------+-----------------------------+
  312. Damping randomness ratio. Default value: ``0``.
  313. .. _class_ParticlesMaterial_property_emission_box_extents:
  314. - :ref:`Vector3<class_Vector3>` **emission_box_extents**
  315. +----------+---------------------------------+
  316. | *Setter* | set_emission_box_extents(value) |
  317. +----------+---------------------------------+
  318. | *Getter* | get_emission_box_extents() |
  319. +----------+---------------------------------+
  320. The box's extents if ``emission_shape`` is set to ``EMISSION_SHAPE_BOX``.
  321. .. _class_ParticlesMaterial_property_emission_color_texture:
  322. - :ref:`Texture<class_Texture>` **emission_color_texture**
  323. +----------+-----------------------------------+
  324. | *Setter* | set_emission_color_texture(value) |
  325. +----------+-----------------------------------+
  326. | *Getter* | get_emission_color_texture() |
  327. +----------+-----------------------------------+
  328. .. _class_ParticlesMaterial_property_emission_normal_texture:
  329. - :ref:`Texture<class_Texture>` **emission_normal_texture**
  330. +----------+------------------------------------+
  331. | *Setter* | set_emission_normal_texture(value) |
  332. +----------+------------------------------------+
  333. | *Getter* | get_emission_normal_texture() |
  334. +----------+------------------------------------+
  335. .. _class_ParticlesMaterial_property_emission_point_count:
  336. - :ref:`int<class_int>` **emission_point_count**
  337. +----------+---------------------------------+
  338. | *Setter* | set_emission_point_count(value) |
  339. +----------+---------------------------------+
  340. | *Getter* | get_emission_point_count() |
  341. +----------+---------------------------------+
  342. The number of emission points if ``emission_shape`` is set to ``EMISSION_SHAPE_POINTS`` or ``EMISSION_SHAPE_DIRECTED_POINTS``.
  343. .. _class_ParticlesMaterial_property_emission_point_texture:
  344. - :ref:`Texture<class_Texture>` **emission_point_texture**
  345. +----------+-----------------------------------+
  346. | *Setter* | set_emission_point_texture(value) |
  347. +----------+-----------------------------------+
  348. | *Getter* | get_emission_point_texture() |
  349. +----------+-----------------------------------+
  350. .. _class_ParticlesMaterial_property_emission_shape:
  351. - :ref:`EmissionShape<enum_ParticlesMaterial_EmissionShape>` **emission_shape**
  352. +----------+---------------------------+
  353. | *Setter* | set_emission_shape(value) |
  354. +----------+---------------------------+
  355. | *Getter* | get_emission_shape() |
  356. +----------+---------------------------+
  357. Particles will be emitted inside this region. Use ``EMISSION_SHAPE_*`` constants for values. Default value: ``EMISSION_SHAPE_POINT``.
  358. .. _class_ParticlesMaterial_property_emission_sphere_radius:
  359. - :ref:`float<class_float>` **emission_sphere_radius**
  360. +----------+-----------------------------------+
  361. | *Setter* | set_emission_sphere_radius(value) |
  362. +----------+-----------------------------------+
  363. | *Getter* | get_emission_sphere_radius() |
  364. +----------+-----------------------------------+
  365. The sphere's radius if ``emission_shape`` is set to ``EMISSION_SHAPE_SPHERE``.
  366. .. _class_ParticlesMaterial_property_flag_align_y:
  367. - :ref:`bool<class_bool>` **flag_align_y**
  368. +----------+-----------------+
  369. | *Setter* | set_flag(value) |
  370. +----------+-----------------+
  371. | *Getter* | get_flag() |
  372. +----------+-----------------+
  373. .. _class_ParticlesMaterial_property_flag_disable_z:
  374. - :ref:`bool<class_bool>` **flag_disable_z**
  375. +----------+-----------------+
  376. | *Setter* | set_flag(value) |
  377. +----------+-----------------+
  378. | *Getter* | get_flag() |
  379. +----------+-----------------+
  380. If ``true``, particles will not move on the z axis. Default value: ``true`` for :ref:`Particles2D<class_Particles2D>`, ``false`` for :ref:`Particles<class_Particles>`.
  381. .. _class_ParticlesMaterial_property_flag_rotate_y:
  382. - :ref:`bool<class_bool>` **flag_rotate_y**
  383. +----------+-----------------+
  384. | *Setter* | set_flag(value) |
  385. +----------+-----------------+
  386. | *Getter* | get_flag() |
  387. +----------+-----------------+
  388. .. _class_ParticlesMaterial_property_flatness:
  389. - :ref:`float<class_float>` **flatness**
  390. +----------+---------------------+
  391. | *Setter* | set_flatness(value) |
  392. +----------+---------------------+
  393. | *Getter* | get_flatness() |
  394. +----------+---------------------+
  395. .. _class_ParticlesMaterial_property_gravity:
  396. - :ref:`Vector3<class_Vector3>` **gravity**
  397. +----------+--------------------+
  398. | *Setter* | set_gravity(value) |
  399. +----------+--------------------+
  400. | *Getter* | get_gravity() |
  401. +----------+--------------------+
  402. Gravity applied to every particle. Default value: ``(0, 98, 0)``.
  403. .. _class_ParticlesMaterial_property_hue_variation:
  404. - :ref:`float<class_float>` **hue_variation**
  405. +----------+------------------+
  406. | *Setter* | set_param(value) |
  407. +----------+------------------+
  408. | *Getter* | get_param() |
  409. +----------+------------------+
  410. Initial hue variation applied to each particle.
  411. .. _class_ParticlesMaterial_property_hue_variation_curve:
  412. - :ref:`Texture<class_Texture>` **hue_variation_curve**
  413. +----------+--------------------------+
  414. | *Setter* | set_param_texture(value) |
  415. +----------+--------------------------+
  416. | *Getter* | get_param_texture() |
  417. +----------+--------------------------+
  418. Each particle's hue will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  419. .. _class_ParticlesMaterial_property_hue_variation_random:
  420. - :ref:`float<class_float>` **hue_variation_random**
  421. +----------+-----------------------------+
  422. | *Setter* | set_param_randomness(value) |
  423. +----------+-----------------------------+
  424. | *Getter* | get_param_randomness() |
  425. +----------+-----------------------------+
  426. Hue variation randomness ratio. Default value: ``0``.
  427. .. _class_ParticlesMaterial_property_initial_velocity:
  428. - :ref:`float<class_float>` **initial_velocity**
  429. +----------+------------------+
  430. | *Setter* | set_param(value) |
  431. +----------+------------------+
  432. | *Getter* | get_param() |
  433. +----------+------------------+
  434. Initial velocity for each particle.
  435. .. _class_ParticlesMaterial_property_initial_velocity_random:
  436. - :ref:`float<class_float>` **initial_velocity_random**
  437. +----------+-----------------------------+
  438. | *Setter* | set_param_randomness(value) |
  439. +----------+-----------------------------+
  440. | *Getter* | get_param_randomness() |
  441. +----------+-----------------------------+
  442. Initial velocity randomness ratio. Default value: ``0``.
  443. .. _class_ParticlesMaterial_property_linear_accel:
  444. - :ref:`float<class_float>` **linear_accel**
  445. +----------+------------------+
  446. | *Setter* | set_param(value) |
  447. +----------+------------------+
  448. | *Getter* | get_param() |
  449. +----------+------------------+
  450. Linear acceleration applied to each particle.
  451. .. _class_ParticlesMaterial_property_linear_accel_curve:
  452. - :ref:`Texture<class_Texture>` **linear_accel_curve**
  453. +----------+--------------------------+
  454. | *Setter* | set_param_texture(value) |
  455. +----------+--------------------------+
  456. | *Getter* | get_param_texture() |
  457. +----------+--------------------------+
  458. Each particle's linear acceleration will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  459. .. _class_ParticlesMaterial_property_linear_accel_random:
  460. - :ref:`float<class_float>` **linear_accel_random**
  461. +----------+-----------------------------+
  462. | *Setter* | set_param_randomness(value) |
  463. +----------+-----------------------------+
  464. | *Getter* | get_param_randomness() |
  465. +----------+-----------------------------+
  466. Linear acceleration randomness ratio. Default value: ``0``.
  467. .. _class_ParticlesMaterial_property_orbit_velocity:
  468. - :ref:`float<class_float>` **orbit_velocity**
  469. +----------+------------------+
  470. | *Setter* | set_param(value) |
  471. +----------+------------------+
  472. | *Getter* | get_param() |
  473. +----------+------------------+
  474. Orbital velocity applied to each particle.
  475. .. _class_ParticlesMaterial_property_orbit_velocity_curve:
  476. - :ref:`Texture<class_Texture>` **orbit_velocity_curve**
  477. +----------+--------------------------+
  478. | *Setter* | set_param_texture(value) |
  479. +----------+--------------------------+
  480. | *Getter* | get_param_texture() |
  481. +----------+--------------------------+
  482. Each particle's orbital velocity will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  483. .. _class_ParticlesMaterial_property_orbit_velocity_random:
  484. - :ref:`float<class_float>` **orbit_velocity_random**
  485. +----------+-----------------------------+
  486. | *Setter* | set_param_randomness(value) |
  487. +----------+-----------------------------+
  488. | *Getter* | get_param_randomness() |
  489. +----------+-----------------------------+
  490. Orbital velocity randomness ratio. Default value: ``0``.
  491. .. _class_ParticlesMaterial_property_radial_accel:
  492. - :ref:`float<class_float>` **radial_accel**
  493. +----------+------------------+
  494. | *Setter* | set_param(value) |
  495. +----------+------------------+
  496. | *Getter* | get_param() |
  497. +----------+------------------+
  498. Radial acceleration applied to each particle.
  499. .. _class_ParticlesMaterial_property_radial_accel_curve:
  500. - :ref:`Texture<class_Texture>` **radial_accel_curve**
  501. +----------+--------------------------+
  502. | *Setter* | set_param_texture(value) |
  503. +----------+--------------------------+
  504. | *Getter* | get_param_texture() |
  505. +----------+--------------------------+
  506. Each particle's radial acceleration will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  507. .. _class_ParticlesMaterial_property_radial_accel_random:
  508. - :ref:`float<class_float>` **radial_accel_random**
  509. +----------+-----------------------------+
  510. | *Setter* | set_param_randomness(value) |
  511. +----------+-----------------------------+
  512. | *Getter* | get_param_randomness() |
  513. +----------+-----------------------------+
  514. Radial acceleration randomness ratio. Default value: ``0``.
  515. .. _class_ParticlesMaterial_property_scale:
  516. - :ref:`float<class_float>` **scale**
  517. +----------+------------------+
  518. | *Setter* | set_param(value) |
  519. +----------+------------------+
  520. | *Getter* | get_param() |
  521. +----------+------------------+
  522. Initial scale applied to each particle.
  523. .. _class_ParticlesMaterial_property_scale_curve:
  524. - :ref:`Texture<class_Texture>` **scale_curve**
  525. +----------+--------------------------+
  526. | *Setter* | set_param_texture(value) |
  527. +----------+--------------------------+
  528. | *Getter* | get_param_texture() |
  529. +----------+--------------------------+
  530. Each particle's scale will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  531. .. _class_ParticlesMaterial_property_scale_random:
  532. - :ref:`float<class_float>` **scale_random**
  533. +----------+-----------------------------+
  534. | *Setter* | set_param_randomness(value) |
  535. +----------+-----------------------------+
  536. | *Getter* | get_param_randomness() |
  537. +----------+-----------------------------+
  538. Scale randomness ratio. Default value: ``0``.
  539. .. _class_ParticlesMaterial_property_spread:
  540. - :ref:`float<class_float>` **spread**
  541. +----------+-------------------+
  542. | *Setter* | set_spread(value) |
  543. +----------+-------------------+
  544. | *Getter* | get_spread() |
  545. +----------+-------------------+
  546. Each particle's initial direction range from ``+spread`` to ``-spread`` degrees. Default value: ``45``.
  547. .. _class_ParticlesMaterial_property_tangential_accel:
  548. - :ref:`float<class_float>` **tangential_accel**
  549. +----------+------------------+
  550. | *Setter* | set_param(value) |
  551. +----------+------------------+
  552. | *Getter* | get_param() |
  553. +----------+------------------+
  554. Tangential acceleration applied to each particle. Tangential acceleration is perpendicular to the particle's velocity.
  555. .. _class_ParticlesMaterial_property_tangential_accel_curve:
  556. - :ref:`Texture<class_Texture>` **tangential_accel_curve**
  557. +----------+--------------------------+
  558. | *Setter* | set_param_texture(value) |
  559. +----------+--------------------------+
  560. | *Getter* | get_param_texture() |
  561. +----------+--------------------------+
  562. Each particle's tangential acceleration will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  563. .. _class_ParticlesMaterial_property_tangential_accel_random:
  564. - :ref:`float<class_float>` **tangential_accel_random**
  565. +----------+-----------------------------+
  566. | *Setter* | set_param_randomness(value) |
  567. +----------+-----------------------------+
  568. | *Getter* | get_param_randomness() |
  569. +----------+-----------------------------+
  570. Tangential acceleration randomness ratio. Default value: ``0``.
  571. .. _class_ParticlesMaterial_property_trail_color_modifier:
  572. - :ref:`GradientTexture<class_GradientTexture>` **trail_color_modifier**
  573. +----------+---------------------------------+
  574. | *Setter* | set_trail_color_modifier(value) |
  575. +----------+---------------------------------+
  576. | *Getter* | get_trail_color_modifier() |
  577. +----------+---------------------------------+
  578. Trail particles' color will vary along this :ref:`GradientTexture<class_GradientTexture>`.
  579. .. _class_ParticlesMaterial_property_trail_divisor:
  580. - :ref:`int<class_int>` **trail_divisor**
  581. +----------+--------------------------+
  582. | *Setter* | set_trail_divisor(value) |
  583. +----------+--------------------------+
  584. | *Getter* | get_trail_divisor() |
  585. +----------+--------------------------+
  586. Emitter will emit ``amount`` divided by ``trail_divisor`` particles. The remaining particles will be used as trail(s).
  587. .. _class_ParticlesMaterial_property_trail_size_modifier:
  588. - :ref:`CurveTexture<class_CurveTexture>` **trail_size_modifier**
  589. +----------+--------------------------------+
  590. | *Setter* | set_trail_size_modifier(value) |
  591. +----------+--------------------------------+
  592. | *Getter* | get_trail_size_modifier() |
  593. +----------+--------------------------------+
  594. Trail particles' size will vary along this :ref:`CurveTexture<class_CurveTexture>`.