Files
godot-docs-l10n/classes/ru/class_boneattachment3d.rst
2025-09-30 13:31:55 +02:00

188 lines
11 KiB
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

:github_url: hide
.. meta::
:keywords: tag
.. _class_BoneAttachment3D:
BoneAttachment3D
================
**Наследует:** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
Узел, который динамически копирует или переопределяет 3D-преобразование кости в ее родителе :ref:`Skeleton3D<class_Skeleton3D>`.
.. rst-class:: classref-introduction-group
Описание
----------------
Этот узел выбирает кость в :ref:`Skeleton3D<class_Skeleton3D>` и присоединяется к ней. Это означает, что узел **BoneAttachment3D** будет либо динамически копировать, либо переопределять 3D-преобразование выбранной кости.
.. rst-class:: classref-reftable-group
Свойства
----------------
.. table::
:widths: auto
+---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`bone_idx<class_BoneAttachment3D_property_bone_idx>` | ``-1`` |
+---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
| :ref:`String<class_String>` | :ref:`bone_name<class_BoneAttachment3D_property_bone_name>` | ``""`` |
+---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
| :ref:`NodePath<class_NodePath>` | :ref:`external_skeleton<class_BoneAttachment3D_property_external_skeleton>` | |
+---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`override_pose<class_BoneAttachment3D_property_override_pose>` | ``false`` |
+---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
| :ref:`PhysicsInterpolationMode<enum_Node_PhysicsInterpolationMode>` | physics_interpolation_mode | ``2`` (overrides :ref:`Node<class_Node_property_physics_interpolation_mode>`) |
+---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`use_external_skeleton<class_BoneAttachment3D_property_use_external_skeleton>` | ``false`` |
+---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
.. rst-class:: classref-reftable-group
Методы
------------
.. table::
:widths: auto
+-------------------------------------+-----------------------------------------------------------------------------------+
| :ref:`Skeleton3D<class_Skeleton3D>` | :ref:`get_skeleton<class_BoneAttachment3D_method_get_skeleton>`\ (\ ) |
+-------------------------------------+-----------------------------------------------------------------------------------+
| |void| | :ref:`on_skeleton_update<class_BoneAttachment3D_method_on_skeleton_update>`\ (\ ) |
+-------------------------------------+-----------------------------------------------------------------------------------+
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Описания свойств
--------------------------------
.. _class_BoneAttachment3D_property_bone_idx:
.. rst-class:: classref-property
:ref:`int<class_int>` **bone_idx** = ``-1`` :ref:`🔗<class_BoneAttachment3D_property_bone_idx>`
.. rst-class:: classref-property-setget
- |void| **set_bone_idx**\ (\ value\: :ref:`int<class_int>`\ )
- :ref:`int<class_int>` **get_bone_idx**\ (\ )
Индекс прикрепленной кости.
.. rst-class:: classref-item-separator
----
.. _class_BoneAttachment3D_property_bone_name:
.. rst-class:: classref-property
:ref:`String<class_String>` **bone_name** = ``""`` :ref:`🔗<class_BoneAttachment3D_property_bone_name>`
.. rst-class:: classref-property-setget
- |void| **set_bone_name**\ (\ value\: :ref:`String<class_String>`\ )
- :ref:`String<class_String>` **get_bone_name**\ (\ )
Название прикрепленной кости.
.. rst-class:: classref-item-separator
----
.. _class_BoneAttachment3D_property_external_skeleton:
.. rst-class:: classref-property
:ref:`NodePath<class_NodePath>` **external_skeleton** :ref:`🔗<class_BoneAttachment3D_property_external_skeleton>`
.. rst-class:: classref-property-setget
- |void| **set_external_skeleton**\ (\ value\: :ref:`NodePath<class_NodePath>`\ )
- :ref:`NodePath<class_NodePath>` **get_external_skeleton**\ (\ )
:ref:`NodePath<class_NodePath>` к внешнему узлу :ref:`Skeleton3D<class_Skeleton3D>`.
.. rst-class:: classref-item-separator
----
.. _class_BoneAttachment3D_property_override_pose:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **override_pose** = ``false`` :ref:`🔗<class_BoneAttachment3D_property_override_pose>`
.. rst-class:: classref-property-setget
- |void| **set_override_pose**\ (\ value\: :ref:`bool<class_bool>`\ )
- :ref:`bool<class_bool>` **get_override_pose**\ (\ )
Будет ли узел **BoneAttachment3D** переопределять позу кости, к которой он прикреплен. Если установлено значение ``true``, узел **BoneAttachment3D** может изменять позу кости. Если установлено значение ``false``, **BoneAttachment3D** всегда будет устанавливаться на преобразование кости.
\ **Примечание:** Это переопределение выполняется прерывающимся образом в процессе обновления скелета с использованием сигналов из-за старого дизайна. Это может вызвать непреднамеренное поведение при одновременном использовании с :ref:`SkeletonModifier3D<class_SkeletonModifier3D>`.
.. rst-class:: classref-item-separator
----
.. _class_BoneAttachment3D_property_use_external_skeleton:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **use_external_skeleton** = ``false`` :ref:`🔗<class_BoneAttachment3D_property_use_external_skeleton>`
.. rst-class:: classref-property-setget
- |void| **set_use_external_skeleton**\ (\ value\: :ref:`bool<class_bool>`\ )
- :ref:`bool<class_bool>` **get_use_external_skeleton**\ (\ )
Будет ли узел **BoneAttachment3D** использовать внешний узел :ref:`Skeleton3D<class_Skeleton3D>` вместо того, чтобы пытаться использовать свой родительский узел как :ref:`Skeleton3D<class_Skeleton3D>`. Если установлено значение ``true``, узел **BoneAttachment3D** будет использовать внешний узел :ref:`Skeleton3D<class_Skeleton3D>`, установленный в :ref:`external_skeleton<class_BoneAttachment3D_property_external_skeleton>`.
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Описания метода
------------------------------
.. _class_BoneAttachment3D_method_get_skeleton:
.. rst-class:: classref-method
:ref:`Skeleton3D<class_Skeleton3D>` **get_skeleton**\ (\ ) :ref:`🔗<class_BoneAttachment3D_method_get_skeleton>`
Возвращает родительский или внешний узел :ref:`Skeleton3D<class_Skeleton3D>`, если он существует, в противном случае возвращает ``null``.
.. rst-class:: classref-item-separator
----
.. _class_BoneAttachment3D_method_on_skeleton_update:
.. rst-class:: classref-method
|void| **on_skeleton_update**\ (\ ) :ref:`🔗<class_BoneAttachment3D_method_on_skeleton_update>`
Функция, которая вызывается автоматически при обновлении :ref:`Skeleton3D<class_Skeleton3D>`. Эта функция — то, где узел **BoneAttachment3D** обновляет свое положение, чтобы оно было правильно привязано, когда он *не* настроен на переопределение позы кости.
.. |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 (Нет возвращаемого значения.)`