:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/CapsuleMesh.xml. .. _class_CapsuleMesh: CapsuleMesh =========== **Inherits:** :ref:`PrimitiveMesh` **<** :ref:`Mesh` **<** :ref:`Resource` **<** :ref:`RefCounted` **<** :ref:`Object` Class representing a capsule-shaped :ref:`PrimitiveMesh`. Description ----------- Class representing a capsule-shaped :ref:`PrimitiveMesh`. Properties ---------- +---------------------------+--------------------------------------------------------------------+---------+ | :ref:`float` | :ref:`height` | ``2.0`` | +---------------------------+--------------------------------------------------------------------+---------+ | :ref:`int` | :ref:`radial_segments` | ``64`` | +---------------------------+--------------------------------------------------------------------+---------+ | :ref:`float` | :ref:`radius` | ``0.5`` | +---------------------------+--------------------------------------------------------------------+---------+ | :ref:`int` | :ref:`rings` | ``8`` | +---------------------------+--------------------------------------------------------------------+---------+ Property Descriptions --------------------- .. _class_CapsuleMesh_property_height: - :ref:`float` **height** +-----------+-------------------+ | *Default* | ``2.0`` | +-----------+-------------------+ | *Setter* | set_height(value) | +-----------+-------------------+ | *Getter* | get_height() | +-----------+-------------------+ Total height of the capsule mesh (including the hemispherical ends). ---- .. _class_CapsuleMesh_property_radial_segments: - :ref:`int` **radial_segments** +-----------+----------------------------+ | *Default* | ``64`` | +-----------+----------------------------+ | *Setter* | set_radial_segments(value) | +-----------+----------------------------+ | *Getter* | get_radial_segments() | +-----------+----------------------------+ Number of radial segments on the capsule mesh. ---- .. _class_CapsuleMesh_property_radius: - :ref:`float` **radius** +-----------+-------------------+ | *Default* | ``0.5`` | +-----------+-------------------+ | *Setter* | set_radius(value) | +-----------+-------------------+ | *Getter* | get_radius() | +-----------+-------------------+ Radius of the capsule mesh. ---- .. _class_CapsuleMesh_property_rings: - :ref:`int` **rings** +-----------+------------------+ | *Default* | ``8`` | +-----------+------------------+ | *Setter* | set_rings(value) | +-----------+------------------+ | *Getter* | get_rings() | +-----------+------------------+ Number of rings along the height of the capsule. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`