class_path.rst 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the Path.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_Path:
  6. Path
  7. ====
  8. **Inherits:** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Contains a :ref:`Curve3D<class_Curve3D>` path for :ref:`PathFollow<class_PathFollow>` nodes to follow.
  13. Properties
  14. ----------
  15. +-------------------------------+-----------------------------------------+
  16. | :ref:`Curve3D<class_Curve3D>` | :ref:`curve<class_Path_property_curve>` |
  17. +-------------------------------+-----------------------------------------+
  18. Signals
  19. -------
  20. .. _class_Path_signal_curve_changed:
  21. - **curve_changed** **(** **)**
  22. Emitted when the :ref:`curve<class_Path_property_curve>` changes.
  23. Description
  24. -----------
  25. Can have :ref:`PathFollow<class_PathFollow>` child nodes moving along the :ref:`Curve3D<class_Curve3D>`. See :ref:`PathFollow<class_PathFollow>` for more information on the usage.
  26. Note that the path is considered as relative to the moved nodes (children of :ref:`PathFollow<class_PathFollow>`). As such, the curve should usually start with a zero vector ``(0, 0, 0)``.
  27. Property Descriptions
  28. ---------------------
  29. .. _class_Path_property_curve:
  30. - :ref:`Curve3D<class_Curve3D>` **curve**
  31. +----------+------------------+
  32. | *Setter* | set_curve(value) |
  33. +----------+------------------+
  34. | *Getter* | get_curve() |
  35. +----------+------------------+
  36. A :ref:`Curve3D<class_Curve3D>` describing the path.