class_segmentshape2d.rst 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the SegmentShape2D.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_SegmentShape2D:
  5. SegmentShape2D
  6. ==============
  7. **Inherits:** :ref:`Shape2D<class_Shape2D>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Segment shape for 2D collisions.
  12. Properties
  13. ----------
  14. +-------------------------------+-------------------------------------------+
  15. | :ref:`Vector2<class_Vector2>` | :ref:`a<class_SegmentShape2D_property_a>` |
  16. +-------------------------------+-------------------------------------------+
  17. | :ref:`Vector2<class_Vector2>` | :ref:`b<class_SegmentShape2D_property_b>` |
  18. +-------------------------------+-------------------------------------------+
  19. Description
  20. -----------
  21. Segment shape for 2D collisions. Consists of two points, ``a`` and ``b``.
  22. Property Descriptions
  23. ---------------------
  24. .. _class_SegmentShape2D_property_a:
  25. - :ref:`Vector2<class_Vector2>` **a**
  26. +----------+--------------+
  27. | *Setter* | set_a(value) |
  28. +----------+--------------+
  29. | *Getter* | get_a() |
  30. +----------+--------------+
  31. The segment's first point position.
  32. .. _class_SegmentShape2D_property_b:
  33. - :ref:`Vector2<class_Vector2>` **b**
  34. +----------+--------------+
  35. | *Setter* | set_b(value) |
  36. +----------+--------------+
  37. | *Getter* | get_b() |
  38. +----------+--------------+
  39. The segment's second point position.