123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- :github_url: hide
- .. DO NOT EDIT THIS FILE!!!
- .. Generated automatically from Godot engine sources.
- .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
- .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/VisualShaderNodeParticleAccelerator.xml.
- .. _class_VisualShaderNodeParticleAccelerator:
- VisualShaderNodeParticleAccelerator
- ===================================
- **Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
- A visual shader node that accelerates particles.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- Particle accelerator can be used in "process" step of particle shader. It will accelerate the particles. Connect it to the Velocity output port.
- .. rst-class:: classref-reftable-group
- Properties
- ----------
- .. table::
- :widths: auto
- +------------------------------------------------------------+----------------------------------------------------------------------+-------+
- | :ref:`Mode<enum_VisualShaderNodeParticleAccelerator_Mode>` | :ref:`mode<class_VisualShaderNodeParticleAccelerator_property_mode>` | ``0`` |
- +------------------------------------------------------------+----------------------------------------------------------------------+-------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Enumerations
- ------------
- .. _enum_VisualShaderNodeParticleAccelerator_Mode:
- .. rst-class:: classref-enumeration
- enum **Mode**: :ref:`🔗<enum_VisualShaderNodeParticleAccelerator_Mode>`
- .. _class_VisualShaderNodeParticleAccelerator_constant_MODE_LINEAR:
- .. rst-class:: classref-enumeration-constant
- :ref:`Mode<enum_VisualShaderNodeParticleAccelerator_Mode>` **MODE_LINEAR** = ``0``
- The particles will be accelerated based on their velocity.
- .. _class_VisualShaderNodeParticleAccelerator_constant_MODE_RADIAL:
- .. rst-class:: classref-enumeration-constant
- :ref:`Mode<enum_VisualShaderNodeParticleAccelerator_Mode>` **MODE_RADIAL** = ``1``
- The particles will be accelerated towards or away from the center.
- .. _class_VisualShaderNodeParticleAccelerator_constant_MODE_TANGENTIAL:
- .. rst-class:: classref-enumeration-constant
- :ref:`Mode<enum_VisualShaderNodeParticleAccelerator_Mode>` **MODE_TANGENTIAL** = ``2``
- The particles will be accelerated tangentially to the radius vector from center to their position.
- .. _class_VisualShaderNodeParticleAccelerator_constant_MODE_MAX:
- .. rst-class:: classref-enumeration-constant
- :ref:`Mode<enum_VisualShaderNodeParticleAccelerator_Mode>` **MODE_MAX** = ``3``
- Represents the size of the :ref:`Mode<enum_VisualShaderNodeParticleAccelerator_Mode>` enum.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Property Descriptions
- ---------------------
- .. _class_VisualShaderNodeParticleAccelerator_property_mode:
- .. rst-class:: classref-property
- :ref:`Mode<enum_VisualShaderNodeParticleAccelerator_Mode>` **mode** = ``0`` :ref:`🔗<class_VisualShaderNodeParticleAccelerator_property_mode>`
- .. rst-class:: classref-property-setget
- - |void| **set_mode**\ (\ value\: :ref:`Mode<enum_VisualShaderNodeParticleAccelerator_Mode>`\ )
- - :ref:`Mode<enum_VisualShaderNodeParticleAccelerator_Mode>` **get_mode**\ (\ )
- Defines in what manner the particles will be accelerated.
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
- .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
- .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
- .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
- .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
- .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
- .. |void| replace:: :abbr:`void (No return value.)`
|