Files
godot-docs-l10n/classes/zh_Hant/class_rootmotionview.rst

147 lines
5.9 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
.. _class_RootMotionView:
RootMotionView
==============
**繼承:** :ref:`VisualInstance3D<class_VisualInstance3D>` **<** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
:ref:`AnimationTree<class_AnimationTree>` 中設定根運動的僅編輯器可用的輔助工具。
.. rst-class:: classref-introduction-group
說明
----
*根運動*\ Root Motion是一種動畫技術通過使用網格的骨架為角色提供沖量。在處理 3D 動畫時,動畫師通常使用根骨骼來為其餘的骨骼提供動作,從而使得角色的動畫能夠準確地配對地面,並實作在電影中與物體的精確互動。另請參閱 :ref:`AnimationTree<class_AnimationTree>`\ 。
\ **注意:**\ **RootMotionView** 僅在編輯器中可見。在運作的專案中將自動隱藏。
.. rst-class:: classref-introduction-group
教學
----
- `使用 AnimationTree - 根運動 <../tutorials/animation/animation_tree.html#root-motion>`__
.. rst-class:: classref-reftable-group
屬性
----
.. table::
:widths: auto
+---------------------------------+---------------------------------------------------------------------+---------------------------+
| :ref:`NodePath<class_NodePath>` | :ref:`animation_path<class_RootMotionView_property_animation_path>` | ``NodePath("")`` |
+---------------------------------+---------------------------------------------------------------------+---------------------------+
| :ref:`float<class_float>` | :ref:`cell_size<class_RootMotionView_property_cell_size>` | ``1.0`` |
+---------------------------------+---------------------------------------------------------------------+---------------------------+
| :ref:`Color<class_Color>` | :ref:`color<class_RootMotionView_property_color>` | ``Color(0.5, 0.5, 1, 1)`` |
+---------------------------------+---------------------------------------------------------------------+---------------------------+
| :ref:`float<class_float>` | :ref:`radius<class_RootMotionView_property_radius>` | ``10.0`` |
+---------------------------------+---------------------------------------------------------------------+---------------------------+
| :ref:`bool<class_bool>` | :ref:`zero_y<class_RootMotionView_property_zero_y>` | ``true`` |
+---------------------------------+---------------------------------------------------------------------+---------------------------+
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
屬性說明
--------
.. _class_RootMotionView_property_animation_path:
.. rst-class:: classref-property
:ref:`NodePath<class_NodePath>` **animation_path** = ``NodePath("")`` :ref:`🔗<class_RootMotionView_property_animation_path>`
.. rst-class:: classref-property-setget
- |void| **set_animation_path**\ (\ value\: :ref:`NodePath<class_NodePath>`\ )
- :ref:`NodePath<class_NodePath>` **get_animation_path**\ (\ )
用作根運動的基的 :ref:`AnimationTree<class_AnimationTree>` 節點的路徑。
.. rst-class:: classref-item-separator
----
.. _class_RootMotionView_property_cell_size:
.. rst-class:: classref-property
:ref:`float<class_float>` **cell_size** = ``1.0`` :ref:`🔗<class_RootMotionView_property_cell_size>`
.. rst-class:: classref-property-setget
- |void| **set_cell_size**\ (\ value\: :ref:`float<class_float>`\ )
- :ref:`float<class_float>` **get_cell_size**\ (\ )
以 3D 單位表示的網格單元大小。
.. rst-class:: classref-item-separator
----
.. _class_RootMotionView_property_color:
.. rst-class:: classref-property
:ref:`Color<class_Color>` **color** = ``Color(0.5, 0.5, 1, 1)`` :ref:`🔗<class_RootMotionView_property_color>`
.. rst-class:: classref-property-setget
- |void| **set_color**\ (\ value\: :ref:`Color<class_Color>`\ )
- :ref:`Color<class_Color>` **get_color**\ (\ )
網格的顏色。
.. rst-class:: classref-item-separator
----
.. _class_RootMotionView_property_radius:
.. rst-class:: classref-property
:ref:`float<class_float>` **radius** = ``10.0`` :ref:`🔗<class_RootMotionView_property_radius>`
.. rst-class:: classref-property-setget
- |void| **set_radius**\ (\ value\: :ref:`float<class_float>`\ )
- :ref:`float<class_float>` **get_radius**\ (\ )
以 3D 單位表示的網格半徑。隨著與原點的距離增加,網格的不透明度將逐漸消失,直到達到此半徑 :ref:`radius<class_RootMotionView_property_radius>`\ 。
.. rst-class:: classref-item-separator
----
.. _class_RootMotionView_property_zero_y:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **zero_y** = ``true`` :ref:`🔗<class_RootMotionView_property_zero_y>`
.. rst-class:: classref-property-setget
- |void| **set_zero_y**\ (\ value\: :ref:`bool<class_bool>`\ )
- :ref:`bool<class_bool>` **get_zero_y**\ (\ )
如果為 ``true``\ ,則網格的點都將位於相同的 Y 座標上(\ *local* Y = 0。如果 ``false``\ ,則保留點的原始 Y 座標。
.. |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 (無回傳值。)`