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

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

编辑器中用于绘制路径的自定义颜色。如果设置为 Color.BLACK(默认值),则使用 ProjectSettings.debug/shapes/paths/geometry_color 中设置的颜色。