.. 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_CapsuleShape: CapsuleShape ============ **Inherits:** :ref:`Shape` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Capsule shape resource. 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 shape resource, which can be set into a :ref:`PhysicsBody` or area. Member Function Description --------------------------- .. _class_CapsuleShape_get_height: - :ref:`float` **get_height** **(** **)** const Return the capsule height. .. _class_CapsuleShape_get_radius: - :ref:`float` **get_radius** **(** **)** const Return the capsule radius. .. _class_CapsuleShape_set_height: - void **set_height** **(** :ref:`float` height **)** Set the capsule height. .. _class_CapsuleShape_set_radius: - void **set_radius** **(** :ref:`float` radius **)** Set the capsule radius.