.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_CollisionPolygon: CollisionPolygon ================ **Inherits:** :ref:`Spatial` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Member Functions ---------------- +------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_build_mode` **(** **)** const | +------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_collision_object_first_shape` **(** **)** const | +------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_collision_object_last_shape` **(** **)** const | +------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_depth` **(** **)** const | +------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2Array` | :ref:`get_polygon` **(** **)** const | +------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_build_mode` **(** :ref:`int` build_mode **)** | +------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_depth` **(** :ref:`float` depth **)** | +------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_polygon` **(** :ref:`Vector2Array` polygon **)** | +------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ Member Function Description --------------------------- .. _class_CollisionPolygon_get_build_mode: - :ref:`int` **get_build_mode** **(** **)** const .. _class_CollisionPolygon_get_collision_object_first_shape: - :ref:`int` **get_collision_object_first_shape** **(** **)** const .. _class_CollisionPolygon_get_collision_object_last_shape: - :ref:`int` **get_collision_object_last_shape** **(** **)** const .. _class_CollisionPolygon_get_depth: - :ref:`float` **get_depth** **(** **)** const .. _class_CollisionPolygon_get_polygon: - :ref:`Vector2Array` **get_polygon** **(** **)** const .. _class_CollisionPolygon_set_build_mode: - void **set_build_mode** **(** :ref:`int` build_mode **)** .. _class_CollisionPolygon_set_depth: - void **set_depth** **(** :ref:`float` depth **)** .. _class_CollisionPolygon_set_polygon: - void **set_polygon** **(** :ref:`Vector2Array` polygon **)**