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() 🔗

debug_custom_color 改变时触发。


属性说明

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.