class_path2d.rst 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/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. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. 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.
  15. \ **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)``).
  16. .. rst-class:: classref-reftable-group
  17. Properties
  18. ----------
  19. .. table::
  20. :widths: auto
  21. +-------------------------------+-------------------------------------------+------------------------------------------------------------------------------------------------------+
  22. | :ref:`Curve2D<class_Curve2D>` | :ref:`curve<class_Path2D_property_curve>` | |
  23. +-------------------------------+-------------------------------------------+------------------------------------------------------------------------------------------------------+
  24. | :ref:`Color<class_Color>` | self_modulate | ``Color( 0.5, 0.6, 1, 0.7 )`` (overrides :ref:`CanvasItem<class_CanvasItem_property_self_modulate>`) |
  25. +-------------------------------+-------------------------------------------+------------------------------------------------------------------------------------------------------+
  26. .. rst-class:: classref-section-separator
  27. ----
  28. .. rst-class:: classref-descriptions-group
  29. Property Descriptions
  30. ---------------------
  31. .. _class_Path2D_property_curve:
  32. .. rst-class:: classref-property
  33. :ref:`Curve2D<class_Curve2D>` **curve**
  34. .. rst-class:: classref-property-setget
  35. - void **set_curve** **(** :ref:`Curve2D<class_Curve2D>` value **)**
  36. - :ref:`Curve2D<class_Curve2D>` **get_curve** **(** **)**
  37. A :ref:`Curve2D<class_Curve2D>` describing the path.
  38. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  39. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  40. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  41. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`