mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2025-12-31 09:49:22 +03:00
181 lines
8.5 KiB
ReStructuredText
181 lines
8.5 KiB
ReStructuredText
:github_url: hide
|
||
|
||
.. _class_PlaneMesh:
|
||
|
||
PlaneMesh
|
||
=========
|
||
|
||
**Наследует:** :ref:`PrimitiveMesh<class_PrimitiveMesh>` **<** :ref:`Mesh<class_Mesh>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
|
||
|
||
**Наследуется от:** :ref:`QuadMesh<class_QuadMesh>`
|
||
|
||
Класс, представляющий плоскую :ref:`PrimitiveMesh<class_PrimitiveMesh>`.
|
||
|
||
.. rst-class:: classref-introduction-group
|
||
|
||
Описание
|
||
----------------
|
||
|
||
Класс, представляющий плоскую :ref:`PrimitiveMesh<class_PrimitiveMesh>`. Эта плоская сетка не имеет толщины. По умолчанию эта сетка выровнена по осям X и Z; это вращение по умолчанию не подходит для использования с материалами для рекламных щитов. Для материалов для рекламных щитов измените :ref:`orientation<class_PlaneMesh_property_orientation>` на :ref:`FACE_Z<class_PlaneMesh_constant_FACE_Z>`.
|
||
|
||
\ **Примечание:** При использовании большой текстурированной **PlaneMesh** (например, в качестве пола) вы можете столкнуться с проблемами дрожания UV в зависимости от угла камеры. Чтобы решить эту проблему, увеличивайте :ref:`subdivide_depth<class_PlaneMesh_property_subdivide_depth>` и :ref:`subdivide_width<class_PlaneMesh_property_subdivide_width>` до тех пор, пока вы не перестанете замечать дрожание UV.
|
||
|
||
.. rst-class:: classref-reftable-group
|
||
|
||
Свойства
|
||
----------------
|
||
|
||
.. table::
|
||
:widths: auto
|
||
|
||
+------------------------------------------------+------------------------------------------------------------------+----------------------+
|
||
| :ref:`Vector3<class_Vector3>` | :ref:`center_offset<class_PlaneMesh_property_center_offset>` | ``Vector3(0, 0, 0)`` |
|
||
+------------------------------------------------+------------------------------------------------------------------+----------------------+
|
||
| :ref:`Orientation<enum_PlaneMesh_Orientation>` | :ref:`orientation<class_PlaneMesh_property_orientation>` | ``1`` |
|
||
+------------------------------------------------+------------------------------------------------------------------+----------------------+
|
||
| :ref:`Vector2<class_Vector2>` | :ref:`size<class_PlaneMesh_property_size>` | ``Vector2(2, 2)`` |
|
||
+------------------------------------------------+------------------------------------------------------------------+----------------------+
|
||
| :ref:`int<class_int>` | :ref:`subdivide_depth<class_PlaneMesh_property_subdivide_depth>` | ``0`` |
|
||
+------------------------------------------------+------------------------------------------------------------------+----------------------+
|
||
| :ref:`int<class_int>` | :ref:`subdivide_width<class_PlaneMesh_property_subdivide_width>` | ``0`` |
|
||
+------------------------------------------------+------------------------------------------------------------------+----------------------+
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
Перечисления
|
||
------------------------
|
||
|
||
.. _enum_PlaneMesh_Orientation:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **Orientation**: :ref:`🔗<enum_PlaneMesh_Orientation>`
|
||
|
||
.. _class_PlaneMesh_constant_FACE_X:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Orientation<enum_PlaneMesh_Orientation>` **FACE_X** = ``0``
|
||
|
||
**PlaneMesh** будет направлен в сторону положительной оси X.
|
||
|
||
.. _class_PlaneMesh_constant_FACE_Y:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Orientation<enum_PlaneMesh_Orientation>` **FACE_Y** = ``1``
|
||
|
||
**PlaneMesh** будет направлен в положительную сторону оси Y. Это соответствует поведению **PlaneMesh** в Godot 3.x.
|
||
|
||
.. _class_PlaneMesh_constant_FACE_Z:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Orientation<enum_PlaneMesh_Orientation>` **FACE_Z** = ``2``
|
||
|
||
**PlaneMesh** будет направлен в сторону положительной оси Z. Это соответствует поведению QuadMesh в Godot 3.x.
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
Описания свойств
|
||
--------------------------------
|
||
|
||
.. _class_PlaneMesh_property_center_offset:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`Vector3<class_Vector3>` **center_offset** = ``Vector3(0, 0, 0)`` :ref:`🔗<class_PlaneMesh_property_center_offset>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_center_offset**\ (\ value\: :ref:`Vector3<class_Vector3>`\ )
|
||
- :ref:`Vector3<class_Vector3>` **get_center_offset**\ (\ )
|
||
|
||
Смещение сгенерированной плоскости. Полезно для частиц.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_PlaneMesh_property_orientation:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`Orientation<enum_PlaneMesh_Orientation>` **orientation** = ``1`` :ref:`🔗<class_PlaneMesh_property_orientation>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_orientation**\ (\ value\: :ref:`Orientation<enum_PlaneMesh_Orientation>`\ )
|
||
- :ref:`Orientation<enum_PlaneMesh_Orientation>` **get_orientation**\ (\ )
|
||
|
||
Направление, в котором смотрит **PlaneMesh**.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_PlaneMesh_property_size:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`Vector2<class_Vector2>` **size** = ``Vector2(2, 2)`` :ref:`🔗<class_PlaneMesh_property_size>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_size**\ (\ value\: :ref:`Vector2<class_Vector2>`\ )
|
||
- :ref:`Vector2<class_Vector2>` **get_size**\ (\ )
|
||
|
||
Размер создаваемой плоскости.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_PlaneMesh_property_subdivide_depth:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`int<class_int>` **subdivide_depth** = ``0`` :ref:`🔗<class_PlaneMesh_property_subdivide_depth>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_subdivide_depth**\ (\ value\: :ref:`int<class_int>`\ )
|
||
- :ref:`int<class_int>` **get_subdivide_depth**\ (\ )
|
||
|
||
Количество делений по оси Z.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_PlaneMesh_property_subdivide_width:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`int<class_int>` **subdivide_width** = ``0`` :ref:`🔗<class_PlaneMesh_property_subdivide_width>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_subdivide_width**\ (\ value\: :ref:`int<class_int>`\ )
|
||
- :ref:`int<class_int>` **get_subdivide_width**\ (\ )
|
||
|
||
Количество делений по оси X.
|
||
|
||
.. |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 (Нет возвращаемого значения.)`
|