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.
Checking the stable version of the documentation...
Path2D¶
继承: Node2D < CanvasItem < Node < Object
包含一个 Curve2D 路径,供 PathFollow2D 节点遵循。
描述¶
可以让 PathFollow2D 子节点沿着 Curve2D 移动。有关用法的更多信息,请参阅 PathFollow2D。
注意:该路径被认为是相对于移动的节点(PathFollow2D 的子节点)。因此,曲线通常以零向量((0,0)
)开始。
属性¶
属性说明¶
Curve2D curve
描述路径的 Curve2D。