mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2026-01-05 14:10:19 +03:00
112 lines
4.1 KiB
ReStructuredText
112 lines
4.1 KiB
ReStructuredText
:github_url: hide
|
|
|
|
.. _class_Path3D:
|
|
|
|
Path3D
|
|
======
|
|
|
|
**繼承:** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
|
|
|
包含 :ref:`PathFollow3D<class_PathFollow3D>` 節點要跟隨的的一條 :ref:`Curve3D<class_Curve3D>` 路徑。
|
|
|
|
.. rst-class:: classref-introduction-group
|
|
|
|
說明
|
|
----
|
|
|
|
可以讓 :ref:`PathFollow3D<class_PathFollow3D>` 子節點沿著 :ref:`Curve3D<class_Curve3D>` 移動。有關用法的更多資訊見 :ref:`PathFollow3D<class_PathFollow3D>`\ 。
|
|
|
|
注意,該路徑被認為是相對於移動的節點(\ :ref:`PathFollow3D<class_PathFollow3D>` 的子節點)。因此,該曲線通常應以零向量 ``(0, 0, 0)`` 開始。
|
|
|
|
.. rst-class:: classref-reftable-group
|
|
|
|
屬性
|
|
----
|
|
|
|
.. table::
|
|
:widths: auto
|
|
|
|
+-------------------------------+---------------------------------------------------------------------+-----------------------+
|
|
| :ref:`Curve3D<class_Curve3D>` | :ref:`curve<class_Path3D_property_curve>` | |
|
|
+-------------------------------+---------------------------------------------------------------------+-----------------------+
|
|
| :ref:`Color<class_Color>` | :ref:`debug_custom_color<class_Path3D_property_debug_custom_color>` | ``Color(0, 0, 0, 1)`` |
|
|
+-------------------------------+---------------------------------------------------------------------+-----------------------+
|
|
|
|
.. rst-class:: classref-section-separator
|
|
|
|
----
|
|
|
|
.. rst-class:: classref-descriptions-group
|
|
|
|
訊號
|
|
----
|
|
|
|
.. _class_Path3D_signal_curve_changed:
|
|
|
|
.. rst-class:: classref-signal
|
|
|
|
**curve_changed**\ (\ ) :ref:`🔗<class_Path3D_signal_curve_changed>`
|
|
|
|
當 :ref:`curve<class_Path3D_property_curve>` 改變時觸發。
|
|
|
|
.. rst-class:: classref-item-separator
|
|
|
|
----
|
|
|
|
.. _class_Path3D_signal_debug_color_changed:
|
|
|
|
.. rst-class:: classref-signal
|
|
|
|
**debug_color_changed**\ (\ ) :ref:`🔗<class_Path3D_signal_debug_color_changed>`
|
|
|
|
Emitted when the :ref:`debug_custom_color<class_Path3D_property_debug_custom_color>` changes.
|
|
|
|
.. rst-class:: classref-section-separator
|
|
|
|
----
|
|
|
|
.. rst-class:: classref-descriptions-group
|
|
|
|
屬性說明
|
|
--------
|
|
|
|
.. _class_Path3D_property_curve:
|
|
|
|
.. rst-class:: classref-property
|
|
|
|
:ref:`Curve3D<class_Curve3D>` **curve** :ref:`🔗<class_Path3D_property_curve>`
|
|
|
|
.. rst-class:: classref-property-setget
|
|
|
|
- |void| **set_curve**\ (\ value\: :ref:`Curve3D<class_Curve3D>`\ )
|
|
- :ref:`Curve3D<class_Curve3D>` **get_curve**\ (\ )
|
|
|
|
描述路徑的 :ref:`Curve3D<class_Curve3D>`\ 。
|
|
|
|
.. rst-class:: classref-item-separator
|
|
|
|
----
|
|
|
|
.. _class_Path3D_property_debug_custom_color:
|
|
|
|
.. rst-class:: classref-property
|
|
|
|
:ref:`Color<class_Color>` **debug_custom_color** = ``Color(0, 0, 0, 1)`` :ref:`🔗<class_Path3D_property_debug_custom_color>`
|
|
|
|
.. rst-class:: classref-property-setget
|
|
|
|
- |void| **set_debug_custom_color**\ (\ value\: :ref:`Color<class_Color>`\ )
|
|
- :ref:`Color<class_Color>` **get_debug_custom_color**\ (\ )
|
|
|
|
The custom color used to draw the path in the editor. If set to :ref:`Color.BLACK<class_Color_constant_BLACK>` (as by default), the color set in :ref:`ProjectSettings.debug/shapes/paths/geometry_color<class_ProjectSettings_property_debug/shapes/paths/geometry_color>` is used.
|
|
|
|
.. |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 (無回傳值。)`
|