.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the CircleShape2D.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_CircleShape2D: CircleShape2D ============= **Inherits:** :ref:`Shape2D` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Circular shape for 2D collisions. Member Functions ---------------- +----------------------------+--------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_radius` **(** **)** const | +----------------------------+--------------------------------------------------------------------------------------------------+ | void | :ref:`set_radius` **(** :ref:`float` radius **)** | +----------------------------+--------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`float` **radius** - The circle's radius. Description ----------- Circular shape for 2D collisions. This shape is useful for modeling balls or small characters and its collision detection with everything else is very fast. Member Function Description --------------------------- .. _class_CircleShape2D_get_radius: - :ref:`float` **get_radius** **(** **)** const Return the radius of the circle shape. .. _class_CircleShape2D_set_radius: - void **set_radius** **(** :ref:`float` radius **)** Set the radius of the circle shape.