class_particles.rst 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_Particles:
  4. Particles
  5. =========
  6. **Inherits:** :ref:`GeometryInstance<class_geometryinstance>` **<** :ref:`VisualInstance<class_visualinstance>` **<** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Member Functions
  11. ----------------
  12. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  13. | :ref:`Rect3<class_rect3>` | :ref:`capture_aabb<class_Particles_capture_aabb>` **(** **)** const |
  14. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`int<class_int>` | :ref:`get_amount<class_Particles_get_amount>` **(** **)** const |
  16. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`int<class_int>` | :ref:`get_draw_order<class_Particles_get_draw_order>` **(** **)** const |
  18. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`Mesh<class_mesh>` | :ref:`get_draw_pass_mesh<class_Particles_get_draw_pass_mesh>` **(** :ref:`int<class_int>` pass **)** const |
  20. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`int<class_int>` | :ref:`get_draw_passes<class_Particles_get_draw_passes>` **(** **)** const |
  22. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`float<class_float>` | :ref:`get_explosiveness_ratio<class_Particles_get_explosiveness_ratio>` **(** **)** const |
  24. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`int<class_int>` | :ref:`get_fixed_fps<class_Particles_get_fixed_fps>` **(** **)** const |
  26. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`bool<class_bool>` | :ref:`get_fractional_delta<class_Particles_get_fractional_delta>` **(** **)** const |
  28. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`float<class_float>` | :ref:`get_lifetime<class_Particles_get_lifetime>` **(** **)** const |
  30. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`float<class_float>` | :ref:`get_pre_process_time<class_Particles_get_pre_process_time>` **(** **)** const |
  32. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  33. | :ref:`Material<class_material>` | :ref:`get_process_material<class_Particles_get_process_material>` **(** **)** const |
  34. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  35. | :ref:`float<class_float>` | :ref:`get_randomness_ratio<class_Particles_get_randomness_ratio>` **(** **)** const |
  36. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  37. | :ref:`float<class_float>` | :ref:`get_speed_scale<class_Particles_get_speed_scale>` **(** **)** const |
  38. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  39. | :ref:`bool<class_bool>` | :ref:`get_use_local_coordinates<class_Particles_get_use_local_coordinates>` **(** **)** const |
  40. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  41. | :ref:`Rect3<class_rect3>` | :ref:`get_visibility_aabb<class_Particles_get_visibility_aabb>` **(** **)** const |
  42. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  43. | :ref:`bool<class_bool>` | :ref:`is_emitting<class_Particles_is_emitting>` **(** **)** const |
  44. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  45. | void | :ref:`set_amount<class_Particles_set_amount>` **(** :ref:`int<class_int>` amount **)** |
  46. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  47. | void | :ref:`set_draw_order<class_Particles_set_draw_order>` **(** :ref:`int<class_int>` order **)** |
  48. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  49. | void | :ref:`set_draw_pass_mesh<class_Particles_set_draw_pass_mesh>` **(** :ref:`int<class_int>` pass, :ref:`Mesh<class_mesh>` mesh **)** |
  50. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  51. | void | :ref:`set_draw_passes<class_Particles_set_draw_passes>` **(** :ref:`int<class_int>` passes **)** |
  52. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  53. | void | :ref:`set_emitting<class_Particles_set_emitting>` **(** :ref:`bool<class_bool>` emitting **)** |
  54. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  55. | void | :ref:`set_explosiveness_ratio<class_Particles_set_explosiveness_ratio>` **(** :ref:`float<class_float>` ratio **)** |
  56. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  57. | void | :ref:`set_fixed_fps<class_Particles_set_fixed_fps>` **(** :ref:`int<class_int>` fps **)** |
  58. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  59. | void | :ref:`set_fractional_delta<class_Particles_set_fractional_delta>` **(** :ref:`bool<class_bool>` enable **)** |
  60. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  61. | void | :ref:`set_lifetime<class_Particles_set_lifetime>` **(** :ref:`float<class_float>` secs **)** |
  62. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  63. | void | :ref:`set_pre_process_time<class_Particles_set_pre_process_time>` **(** :ref:`float<class_float>` secs **)** |
  64. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  65. | void | :ref:`set_process_material<class_Particles_set_process_material>` **(** :ref:`Material<class_material>` material **)** |
  66. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  67. | void | :ref:`set_randomness_ratio<class_Particles_set_randomness_ratio>` **(** :ref:`float<class_float>` ratio **)** |
  68. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  69. | void | :ref:`set_speed_scale<class_Particles_set_speed_scale>` **(** :ref:`float<class_float>` scale **)** |
  70. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  71. | void | :ref:`set_use_local_coordinates<class_Particles_set_use_local_coordinates>` **(** :ref:`bool<class_bool>` enable **)** |
  72. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  73. | void | :ref:`set_visibility_aabb<class_Particles_set_visibility_aabb>` **(** :ref:`Rect3<class_rect3>` aabb **)** |
  74. +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  75. Member Variables
  76. ----------------
  77. - :ref:`int<class_int>` **amount**
  78. - :ref:`int<class_int>` **draw_order**
  79. - :ref:`Mesh<class_mesh>` **draw_pass_1**
  80. - :ref:`Mesh<class_mesh>` **draw_pass_2**
  81. - :ref:`Mesh<class_mesh>` **draw_pass_3**
  82. - :ref:`Mesh<class_mesh>` **draw_pass_4**
  83. - :ref:`int<class_int>` **draw_passes**
  84. - :ref:`bool<class_bool>` **emitting**
  85. - :ref:`float<class_float>` **explosiveness**
  86. - :ref:`int<class_int>` **fixed_fps**
  87. - :ref:`bool<class_bool>` **fract_delta**
  88. - :ref:`float<class_float>` **lifetime**
  89. - :ref:`bool<class_bool>` **local_coords**
  90. - :ref:`float<class_float>` **preprocess**
  91. - ParticlesMaterial,ShaderMaterial **process_material**
  92. - :ref:`float<class_float>` **randomness**
  93. - :ref:`float<class_float>` **speed_scale**
  94. - :ref:`Rect3<class_rect3>` **visibility_aabb**
  95. Numeric Constants
  96. -----------------
  97. - **DRAW_ORDER_INDEX** = **0**
  98. - **DRAW_ORDER_LIFETIME** = **1**
  99. - **DRAW_ORDER_VIEW_DEPTH** = **2**
  100. - **MAX_DRAW_PASSES** = **4**
  101. Member Function Description
  102. ---------------------------
  103. .. _class_Particles_capture_aabb:
  104. - :ref:`Rect3<class_rect3>` **capture_aabb** **(** **)** const
  105. .. _class_Particles_get_amount:
  106. - :ref:`int<class_int>` **get_amount** **(** **)** const
  107. .. _class_Particles_get_draw_order:
  108. - :ref:`int<class_int>` **get_draw_order** **(** **)** const
  109. .. _class_Particles_get_draw_pass_mesh:
  110. - :ref:`Mesh<class_mesh>` **get_draw_pass_mesh** **(** :ref:`int<class_int>` pass **)** const
  111. .. _class_Particles_get_draw_passes:
  112. - :ref:`int<class_int>` **get_draw_passes** **(** **)** const
  113. .. _class_Particles_get_explosiveness_ratio:
  114. - :ref:`float<class_float>` **get_explosiveness_ratio** **(** **)** const
  115. .. _class_Particles_get_fixed_fps:
  116. - :ref:`int<class_int>` **get_fixed_fps** **(** **)** const
  117. .. _class_Particles_get_fractional_delta:
  118. - :ref:`bool<class_bool>` **get_fractional_delta** **(** **)** const
  119. .. _class_Particles_get_lifetime:
  120. - :ref:`float<class_float>` **get_lifetime** **(** **)** const
  121. .. _class_Particles_get_pre_process_time:
  122. - :ref:`float<class_float>` **get_pre_process_time** **(** **)** const
  123. .. _class_Particles_get_process_material:
  124. - :ref:`Material<class_material>` **get_process_material** **(** **)** const
  125. .. _class_Particles_get_randomness_ratio:
  126. - :ref:`float<class_float>` **get_randomness_ratio** **(** **)** const
  127. .. _class_Particles_get_speed_scale:
  128. - :ref:`float<class_float>` **get_speed_scale** **(** **)** const
  129. .. _class_Particles_get_use_local_coordinates:
  130. - :ref:`bool<class_bool>` **get_use_local_coordinates** **(** **)** const
  131. .. _class_Particles_get_visibility_aabb:
  132. - :ref:`Rect3<class_rect3>` **get_visibility_aabb** **(** **)** const
  133. .. _class_Particles_is_emitting:
  134. - :ref:`bool<class_bool>` **is_emitting** **(** **)** const
  135. .. _class_Particles_set_amount:
  136. - void **set_amount** **(** :ref:`int<class_int>` amount **)**
  137. .. _class_Particles_set_draw_order:
  138. - void **set_draw_order** **(** :ref:`int<class_int>` order **)**
  139. .. _class_Particles_set_draw_pass_mesh:
  140. - void **set_draw_pass_mesh** **(** :ref:`int<class_int>` pass, :ref:`Mesh<class_mesh>` mesh **)**
  141. .. _class_Particles_set_draw_passes:
  142. - void **set_draw_passes** **(** :ref:`int<class_int>` passes **)**
  143. .. _class_Particles_set_emitting:
  144. - void **set_emitting** **(** :ref:`bool<class_bool>` emitting **)**
  145. .. _class_Particles_set_explosiveness_ratio:
  146. - void **set_explosiveness_ratio** **(** :ref:`float<class_float>` ratio **)**
  147. .. _class_Particles_set_fixed_fps:
  148. - void **set_fixed_fps** **(** :ref:`int<class_int>` fps **)**
  149. .. _class_Particles_set_fractional_delta:
  150. - void **set_fractional_delta** **(** :ref:`bool<class_bool>` enable **)**
  151. .. _class_Particles_set_lifetime:
  152. - void **set_lifetime** **(** :ref:`float<class_float>` secs **)**
  153. .. _class_Particles_set_pre_process_time:
  154. - void **set_pre_process_time** **(** :ref:`float<class_float>` secs **)**
  155. .. _class_Particles_set_process_material:
  156. - void **set_process_material** **(** :ref:`Material<class_material>` material **)**
  157. .. _class_Particles_set_randomness_ratio:
  158. - void **set_randomness_ratio** **(** :ref:`float<class_float>` ratio **)**
  159. .. _class_Particles_set_speed_scale:
  160. - void **set_speed_scale** **(** :ref:`float<class_float>` scale **)**
  161. .. _class_Particles_set_use_local_coordinates:
  162. - void **set_use_local_coordinates** **(** :ref:`bool<class_bool>` enable **)**
  163. .. _class_Particles_set_visibility_aabb:
  164. - void **set_visibility_aabb** **(** :ref:`Rect3<class_rect3>` aabb **)**