.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the CapsuleShape2D.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_CapsuleShape2D: CapsuleShape2D ============== **Inherits:** :ref:`Shape2D` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Capsule shape for 2D collisions. Member Functions ---------------- +----------------------------+---------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_height` **(** **)** const | +----------------------------+---------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_radius` **(** **)** const | +----------------------------+---------------------------------------------------------------------------------------------------+ | void | :ref:`set_height` **(** :ref:`float` height **)** | +----------------------------+---------------------------------------------------------------------------------------------------+ | void | :ref:`set_radius` **(** :ref:`float` radius **)** | +----------------------------+---------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`float` **height** - The capsule's height. - :ref:`float` **radius** - The capsules's radius. Description ----------- Capsule shape for 2D collisions. Member Function Description --------------------------- .. _class_CapsuleShape2D_get_height: - :ref:`float` **get_height** **(** **)** const Return the height of the :ref:`CapsuleShape2D`. .. _class_CapsuleShape2D_get_radius: - :ref:`float` **get_radius** **(** **)** const Return the radius of the :ref:`CapsuleShape2D`. .. _class_CapsuleShape2D_set_height: - void **set_height** **(** :ref:`float` height **)** Set the height of the :ref:`CapsuleShape2D`. .. _class_CapsuleShape2D_set_radius: - void **set_radius** **(** :ref:`float` radius **)** Set the radius of the :ref:`CapsuleShape2D`.