mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 18:29:11 +00:00
77 lines
2.5 KiB
ReStructuredText
77 lines
2.5 KiB
ReStructuredText
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the SegmentShape2D.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_SegmentShape2D:
|
|
|
|
SegmentShape2D
|
|
==============
|
|
|
|
**Inherits:** :ref:`Shape2D<class_shape2d>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
Segment shape for 2D collisions.
|
|
|
|
Member Functions
|
|
----------------
|
|
|
|
+--------------------------------+--------------------------------------------------------------------------------------+
|
|
| :ref:`Vector2<class_vector2>` | :ref:`get_a<class_SegmentShape2D_get_a>` **(** **)** const |
|
|
+--------------------------------+--------------------------------------------------------------------------------------+
|
|
| :ref:`Vector2<class_vector2>` | :ref:`get_b<class_SegmentShape2D_get_b>` **(** **)** const |
|
|
+--------------------------------+--------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_a<class_SegmentShape2D_set_a>` **(** :ref:`Vector2<class_vector2>` a **)** |
|
|
+--------------------------------+--------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_b<class_SegmentShape2D_set_b>` **(** :ref:`Vector2<class_vector2>` b **)** |
|
|
+--------------------------------+--------------------------------------------------------------------------------------+
|
|
|
|
Member Variables
|
|
----------------
|
|
|
|
.. _class_SegmentShape2D_a:
|
|
|
|
- :ref:`Vector2<class_vector2>` **a** - The segment's first point position.
|
|
|
|
.. _class_SegmentShape2D_b:
|
|
|
|
- :ref:`Vector2<class_vector2>` **b** - The segment's second point position.
|
|
|
|
|
|
Description
|
|
-----------
|
|
|
|
Segment shape for 2D collisions. Consists of two points, ``a`` and ``b``.
|
|
|
|
Member Function Description
|
|
---------------------------
|
|
|
|
.. _class_SegmentShape2D_get_a:
|
|
|
|
- :ref:`Vector2<class_vector2>` **get_a** **(** **)** const
|
|
|
|
Return the first point's position.
|
|
|
|
.. _class_SegmentShape2D_get_b:
|
|
|
|
- :ref:`Vector2<class_vector2>` **get_b** **(** **)** const
|
|
|
|
Return the second point's position.
|
|
|
|
.. _class_SegmentShape2D_set_a:
|
|
|
|
- void **set_a** **(** :ref:`Vector2<class_vector2>` a **)**
|
|
|
|
Set the first point's position.
|
|
|
|
.. _class_SegmentShape2D_set_b:
|
|
|
|
- void **set_b** **(** :ref:`Vector2<class_vector2>` b **)**
|
|
|
|
Set the second point's position.
|
|
|
|
|