class_visualshadernodeparticleaccelerator.rst 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/VisualShaderNodeParticleAccelerator.xml.
  6. .. _class_VisualShaderNodeParticleAccelerator:
  7. VisualShaderNodeParticleAccelerator
  8. ===================================
  9. **Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. A visual shader node that accelerates particles.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Particle accelerator can be used in "process" step of particle shader. It will accelerate the particles. Connect it to the Velocity output port.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +------------------------------------------------------------+----------------------------------------------------------------------+-------+
  21. | :ref:`Mode<enum_VisualShaderNodeParticleAccelerator_Mode>` | :ref:`mode<class_VisualShaderNodeParticleAccelerator_property_mode>` | ``0`` |
  22. +------------------------------------------------------------+----------------------------------------------------------------------+-------+
  23. .. rst-class:: classref-section-separator
  24. ----
  25. .. rst-class:: classref-descriptions-group
  26. Enumerations
  27. ------------
  28. .. _enum_VisualShaderNodeParticleAccelerator_Mode:
  29. .. rst-class:: classref-enumeration
  30. enum **Mode**: :ref:`🔗<enum_VisualShaderNodeParticleAccelerator_Mode>`
  31. .. _class_VisualShaderNodeParticleAccelerator_constant_MODE_LINEAR:
  32. .. rst-class:: classref-enumeration-constant
  33. :ref:`Mode<enum_VisualShaderNodeParticleAccelerator_Mode>` **MODE_LINEAR** = ``0``
  34. The particles will be accelerated based on their velocity.
  35. .. _class_VisualShaderNodeParticleAccelerator_constant_MODE_RADIAL:
  36. .. rst-class:: classref-enumeration-constant
  37. :ref:`Mode<enum_VisualShaderNodeParticleAccelerator_Mode>` **MODE_RADIAL** = ``1``
  38. The particles will be accelerated towards or away from the center.
  39. .. _class_VisualShaderNodeParticleAccelerator_constant_MODE_TANGENTIAL:
  40. .. rst-class:: classref-enumeration-constant
  41. :ref:`Mode<enum_VisualShaderNodeParticleAccelerator_Mode>` **MODE_TANGENTIAL** = ``2``
  42. The particles will be accelerated tangentially to the radius vector from center to their position.
  43. .. _class_VisualShaderNodeParticleAccelerator_constant_MODE_MAX:
  44. .. rst-class:: classref-enumeration-constant
  45. :ref:`Mode<enum_VisualShaderNodeParticleAccelerator_Mode>` **MODE_MAX** = ``3``
  46. Represents the size of the :ref:`Mode<enum_VisualShaderNodeParticleAccelerator_Mode>` enum.
  47. .. rst-class:: classref-section-separator
  48. ----
  49. .. rst-class:: classref-descriptions-group
  50. Property Descriptions
  51. ---------------------
  52. .. _class_VisualShaderNodeParticleAccelerator_property_mode:
  53. .. rst-class:: classref-property
  54. :ref:`Mode<enum_VisualShaderNodeParticleAccelerator_Mode>` **mode** = ``0`` :ref:`🔗<class_VisualShaderNodeParticleAccelerator_property_mode>`
  55. .. rst-class:: classref-property-setget
  56. - |void| **set_mode**\ (\ value\: :ref:`Mode<enum_VisualShaderNodeParticleAccelerator_Mode>`\ )
  57. - :ref:`Mode<enum_VisualShaderNodeParticleAccelerator_Mode>` **get_mode**\ (\ )
  58. Defines in what manner the particles will be accelerated.
  59. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  60. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  61. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  62. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  63. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  64. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  65. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  66. .. |void| replace:: :abbr:`void (No return value.)`