Files
godot-docs/classes/class_convexpolygonshape.rst
2017-10-11 23:56:28 +02:00

50 lines
2.0 KiB
ReStructuredText

.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
.. DO NOT EDIT THIS FILE, but the ConvexPolygonShape.xml source instead.
.. The source is found in doc/classes or modules/<name>/doc_classes.
.. _class_ConvexPolygonShape:
ConvexPolygonShape
==================
**Inherits:** :ref:`Shape<class_shape>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
**Category:** Core
Brief Description
-----------------
Convex polygon shape for 3D physics.
Member Functions
----------------
+--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
| :ref:`PoolVector3Array<class_poolvector3array>` | :ref:`get_points<class_ConvexPolygonShape_get_points>` **(** **)** const |
+--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`set_points<class_ConvexPolygonShape_set_points>` **(** :ref:`PoolVector3Array<class_poolvector3array>` points **)** |
+--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
Member Variables
----------------
- :ref:`PoolVector3Array<class_poolvector3array>` **points** - The list of 3D points forming the convex polygon shape.
Description
-----------
Convex polygon shape resource, which can be added to a :ref:`PhysicsBody<class_physicsbody>` or area.
Member Function Description
---------------------------
.. _class_ConvexPolygonShape_get_points:
- :ref:`PoolVector3Array<class_poolvector3array>` **get_points** **(** **)** const
.. _class_ConvexPolygonShape_set_points:
- void **set_points** **(** :ref:`PoolVector3Array<class_poolvector3array>` points **)**