class_path2d.rst 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/Path2D.xml.
  6. .. _class_Path2D:
  7. Path2D
  8. ======
  9. **Inherits:** :ref:`Node2D<class_Node2D>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. Contains a :ref:`Curve2D<class_Curve2D>` path for :ref:`PathFollow2D<class_PathFollow2D>` nodes to follow.
  11. Description
  12. -----------
  13. Can have :ref:`PathFollow2D<class_PathFollow2D>` child nodes moving along the :ref:`Curve2D<class_Curve2D>`. See :ref:`PathFollow2D<class_PathFollow2D>` for more information on usage.
  14. \ **Note:** The path is considered as relative to the moved nodes (children of :ref:`PathFollow2D<class_PathFollow2D>`). As such, the curve should usually start with a zero vector (``(0, 0)``).
  15. Properties
  16. ----------
  17. +-------------------------------+-------------------------------------------+
  18. | :ref:`Curve2D<class_Curve2D>` | :ref:`curve<class_Path2D_property_curve>` |
  19. +-------------------------------+-------------------------------------------+
  20. Property Descriptions
  21. ---------------------
  22. .. _class_Path2D_property_curve:
  23. - :ref:`Curve2D<class_Curve2D>` **curve**
  24. +----------+------------------+
  25. | *Setter* | set_curve(value) |
  26. +----------+------------------+
  27. | *Getter* | get_curve() |
  28. +----------+------------------+
  29. A :ref:`Curve2D<class_Curve2D>` describing the path.
  30. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  31. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  32. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  33. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  34. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  35. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`