.. 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_CapsuleShape2D: CapsuleShape2D ============== **Inherits:** :ref:`Shape2D` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Capsule 2D shape resource for physics. 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** - :ref:`float` **radius** Description ----------- Capsule 2D shape resource for physics. A capsule (or sometimes called "pill") is like a line grown in all directions. It has a radius and a height, and is often useful for modeling biped characters. 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`.