mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2026-01-05 14:10:19 +03:00
199 lines
9.4 KiB
ReStructuredText
199 lines
9.4 KiB
ReStructuredText
:github_url: hide
|
||
|
||
.. _class_RibbonTrailMesh:
|
||
|
||
RibbonTrailMesh
|
||
===============
|
||
|
||
**Наследует:** :ref:`PrimitiveMesh<class_PrimitiveMesh>` **<** :ref:`Mesh<class_Mesh>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
|
||
|
||
Представляет собой прямую лентовидную :ref:`PrimitiveMesh<class_PrimitiveMesh>` с переменной шириной.
|
||
|
||
.. rst-class:: classref-introduction-group
|
||
|
||
Описание
|
||
----------------
|
||
|
||
**RibbonTrailMesh** представляет собой прямую лентообразную сетку с переменной шириной. Лента состоит из ряда плоских или крестообразных секций, каждая из которых имеет одинаковую :ref:`section_length<class_RibbonTrailMesh_property_section_length>` и количество :ref:`section_segments<class_RibbonTrailMesh_property_section_segments>`. ``Member curve`` выбирается по всей длине ленты, что означает, что кривая определяет размер ленты по ее длине.
|
||
|
||
Эта примитивная сетка обычно используется для следов частиц.
|
||
|
||
.. rst-class:: classref-introduction-group
|
||
|
||
Обучающие материалы
|
||
--------------------------------------
|
||
|
||
- :doc:`Трехмерные следы частиц <../tutorials/3d/particles/trails>`
|
||
|
||
- :doc:`Системы частиц (3D) <../tutorials/3d/particles/index>`
|
||
|
||
.. rst-class:: classref-reftable-group
|
||
|
||
Свойства
|
||
----------------
|
||
|
||
.. table::
|
||
:widths: auto
|
||
|
||
+------------------------------------------+--------------------------------------------------------------------------+---------+
|
||
| :ref:`Curve<class_Curve>` | :ref:`curve<class_RibbonTrailMesh_property_curve>` | |
|
||
+------------------------------------------+--------------------------------------------------------------------------+---------+
|
||
| :ref:`float<class_float>` | :ref:`section_length<class_RibbonTrailMesh_property_section_length>` | ``0.2`` |
|
||
+------------------------------------------+--------------------------------------------------------------------------+---------+
|
||
| :ref:`int<class_int>` | :ref:`section_segments<class_RibbonTrailMesh_property_section_segments>` | ``3`` |
|
||
+------------------------------------------+--------------------------------------------------------------------------+---------+
|
||
| :ref:`int<class_int>` | :ref:`sections<class_RibbonTrailMesh_property_sections>` | ``5`` |
|
||
+------------------------------------------+--------------------------------------------------------------------------+---------+
|
||
| :ref:`Shape<enum_RibbonTrailMesh_Shape>` | :ref:`shape<class_RibbonTrailMesh_property_shape>` | ``1`` |
|
||
+------------------------------------------+--------------------------------------------------------------------------+---------+
|
||
| :ref:`float<class_float>` | :ref:`size<class_RibbonTrailMesh_property_size>` | ``1.0`` |
|
||
+------------------------------------------+--------------------------------------------------------------------------+---------+
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
Перечисления
|
||
------------------------
|
||
|
||
.. _enum_RibbonTrailMesh_Shape:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **Shape**: :ref:`🔗<enum_RibbonTrailMesh_Shape>`
|
||
|
||
.. _class_RibbonTrailMesh_constant_SHAPE_FLAT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Shape<enum_RibbonTrailMesh_Shape>` **SHAPE_FLAT** = ``0``
|
||
|
||
Придает сетке одну плоскую поверхность.
|
||
|
||
.. _class_RibbonTrailMesh_constant_SHAPE_CROSS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Shape<enum_RibbonTrailMesh_Shape>` **SHAPE_CROSS** = ``1``
|
||
|
||
Придает сетке две перпендикулярные плоские грани, образуя крестообразную форму.
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
Описания свойств
|
||
--------------------------------
|
||
|
||
.. _class_RibbonTrailMesh_property_curve:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`Curve<class_Curve>` **curve** :ref:`🔗<class_RibbonTrailMesh_property_curve>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_curve**\ (\ value\: :ref:`Curve<class_Curve>`\ )
|
||
- :ref:`Curve<class_Curve>` **get_curve**\ (\ )
|
||
|
||
Определяет размер ленты по ее длине. Размер конкретного сегмента секции получается путем умножения базовой линии :ref:`size<class_RibbonTrailMesh_property_size>` на значение этой кривой на заданном расстоянии. Для значений, меньших ``0``, грани будут инвертированы. Должна быть единицей :ref:`Curve<class_Curve>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RibbonTrailMesh_property_section_length:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`float<class_float>` **section_length** = ``0.2`` :ref:`🔗<class_RibbonTrailMesh_property_section_length>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_section_length**\ (\ value\: :ref:`float<class_float>`\ )
|
||
- :ref:`float<class_float>` **get_section_length**\ (\ )
|
||
|
||
Длина отрезка ленты.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RibbonTrailMesh_property_section_segments:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`int<class_int>` **section_segments** = ``3`` :ref:`🔗<class_RibbonTrailMesh_property_section_segments>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_section_segments**\ (\ value\: :ref:`int<class_int>`\ )
|
||
- :ref:`int<class_int>` **get_section_segments**\ (\ )
|
||
|
||
Количество сегментов в секции. :ref:`curve<class_RibbonTrailMesh_property_curve>` выбирается на каждом сегменте для определения его размера. Более высокие значения приводят к более подробной ленте за счет производительности.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RibbonTrailMesh_property_sections:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`int<class_int>` **sections** = ``5`` :ref:`🔗<class_RibbonTrailMesh_property_sections>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_sections**\ (\ value\: :ref:`int<class_int>`\ )
|
||
- :ref:`int<class_int>` **get_sections**\ (\ )
|
||
|
||
Общее количество разделов на ленте.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RibbonTrailMesh_property_shape:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`Shape<enum_RibbonTrailMesh_Shape>` **shape** = ``1`` :ref:`🔗<class_RibbonTrailMesh_property_shape>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_shape**\ (\ value\: :ref:`Shape<enum_RibbonTrailMesh_Shape>`\ )
|
||
- :ref:`Shape<enum_RibbonTrailMesh_Shape>` **get_shape**\ (\ )
|
||
|
||
Определяет форму ленты.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RibbonTrailMesh_property_size:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`float<class_float>` **size** = ``1.0`` :ref:`🔗<class_RibbonTrailMesh_property_size>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_size**\ (\ value\: :ref:`float<class_float>`\ )
|
||
- :ref:`float<class_float>` **get_size**\ (\ )
|
||
|
||
Базовый размер ленты. Размер конкретного сегмента сечения получается путем умножения этого размера на значение :ref:`curve<class_RibbonTrailMesh_property_curve>` на заданном расстоянии.
|
||
|
||
.. |virtual| replace:: :abbr:`virtual (Этот метод обычно должен быть переопределен пользователем, чтобы иметь какой-либо эффект.)`
|
||
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
|
||
.. |const| replace:: :abbr:`const (Этот метод не имеет побочных эффектов. Он не изменяет ни одну из переменных-членов экземпляра.)`
|
||
.. |vararg| replace:: :abbr:`vararg (Этот метод принимает любое количество аргументов после описанных здесь.)`
|
||
.. |constructor| replace:: :abbr:`constructor (Этот метод используется для создания типа.)`
|
||
.. |static| replace:: :abbr:`static (Этот метод не нуждается в вызове экземпляра, поэтому его можно вызвать напрямую, используя имя класса.)`
|
||
.. |operator| replace:: :abbr:`operator (Этот метод описывает допустимый оператор для использования с этим типом в качестве левого операнда.)`
|
||
.. |bitfield| replace:: :abbr:`BitField (Это значение является целым числом, составленным как битовая маска следующих флагов.)`
|
||
.. |void| replace:: :abbr:`void (Нет возвращаемого значения.)`
|