Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

Path3D

繼承: Node3D < Node < Object

包含 PathFollow3D 節點要跟隨的的一條 Curve3D 路徑。

說明

可以讓 PathFollow3D 子節點沿著 Curve3D 移動。有關用法的更多資訊見 PathFollow3D

注意,該路徑被認為是相對於移動的節點(PathFollow3D 的子節點)。因此,該曲線通常應以零向量 (0, 0, 0) 開始。

屬性

Curve3D

curve

Color

debug_custom_color

Color(0, 0, 0, 1)


訊號

curve_changed() 🔗

curve 改變時觸發。


debug_color_changed() 🔗

Emitted when the debug_custom_color changes.


屬性說明

Curve3D curve 🔗

描述路徑的 Curve3D


Color debug_custom_color = Color(0, 0, 0, 1) 🔗

  • void set_debug_custom_color(value: Color)

  • Color get_debug_custom_color()

The custom color used to draw the path in the editor. If set to Color.BLACK (as by default), the color set in ProjectSettings.debug/shapes/paths/geometry_color is used.