mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Properly parse [code] tags
This commit is contained in:
@@ -44,7 +44,7 @@ Member Function Description
|
||||
|
||||
Set the array of points forming the polygon.
|
||||
|
||||
When editing the point list via the editor, depending on :ref:`get_build_mode<CollisionPolygon2D_get_build_mode>`, it has to be a list of points (for :ref:`code<class_code>`build_mode:ref:`/code<class_/code>`=0), or a list of lines (for :ref:`code<class_code>`build_mode:ref:`/code<class_/code>`=1). In the second case, the even elements of the array define the start point of the line, and the odd elements the end point.
|
||||
When editing the point list via the editor, depending on :ref:`get_build_mode<CollisionPolygon2D_get_build_mode>`, it has to be a list of points (for ``build_mode``=0), or a list of lines (for ``build_mode``=1). In the second case, the even elements of the array define the start point of the line, and the odd elements the end point.
|
||||
|
||||
.. _class_CollisionPolygon2D_get_polygon:
|
||||
|
||||
@@ -56,13 +56,13 @@ Return the list of points that define the polygon.
|
||||
|
||||
- void **set_build_mode** **(** :ref:`int<class_int>` build_mode **)**
|
||||
|
||||
Set whether the polygon is to be a :ref:`ConvexPolygon2D<class_convexpolygon2d>` (:ref:`code<class_code>`build_mode:ref:`/code<class_/code>`=0), or a :ref:`ConcavePolygon2D<class_concavepolygon2d>` (:ref:`code<class_code>`build_mode:ref:`/code<class_/code>`=1).
|
||||
Set whether the polygon is to be a :ref:`ConvexPolygon2D<class_convexpolygon2d>` (``build_mode``=0), or a :ref:`ConcavePolygon2D<class_concavepolygon2d>` (``build_mode``=1).
|
||||
|
||||
.. _class_CollisionPolygon2D_get_build_mode:
|
||||
|
||||
- :ref:`int<class_int>` **get_build_mode** **(** **)** const
|
||||
|
||||
Return whether the polygon is a :ref:`ConvexPolygon2D<class_convexpolygon2d>` (:ref:`code<class_code>`build_mode:ref:`/code<class_/code>`=0), or a :ref:`ConcavePolygon2D<class_concavepolygon2d>` (:ref:`code<class_code>`build_mode:ref:`/code<class_/code>`=1).
|
||||
Return whether the polygon is a :ref:`ConvexPolygon2D<class_convexpolygon2d>` (``build_mode``=0), or a :ref:`ConcavePolygon2D<class_concavepolygon2d>` (``build_mode``=1).
|
||||
|
||||
.. _class_CollisionPolygon2D_set_trigger:
|
||||
|
||||
@@ -82,9 +82,9 @@ Return whether this polygon is a trigger.
|
||||
|
||||
Return the index of the first shape generated by the editor.
|
||||
|
||||
When :ref:`code<class_code>`build_mode:ref:`/code<class_/code>` is set to generate convex polygons, the shape shown in the editor may be decomopsed into many convex polygons. In that case, a range of indexes is needed to directly access the :ref:`Shape2D<class_shape2d>`s.
|
||||
When ``build_mode`` is set to generate convex polygons, the shape shown in the editor may be decomopsed into many convex polygons. In that case, a range of indexes is needed to directly access the :ref:`Shape2D<class_shape2d>`s.
|
||||
|
||||
When :ref:`code<class_code>`build_mode:ref:`/code<class_/code>` is set to generate concave polygons, there is only one :ref:`Shape2D<class_shape2d>` generated, so the start index and the end index are the same.
|
||||
When ``build_mode`` is set to generate concave polygons, there is only one :ref:`Shape2D<class_shape2d>` generated, so the start index and the end index are the same.
|
||||
|
||||
.. _class_CollisionPolygon2D_get_collision_object_last_shape:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user