class_capsuleshape.rst 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the CapsuleShape.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_CapsuleShape:
  5. CapsuleShape
  6. ============
  7. **Inherits:** :ref:`Shape<class_shape>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Capsule shape for collisions.
  12. Member Functions
  13. ----------------
  14. +----------------------------+-------------------------------------------------------------------------------------------------+
  15. | :ref:`float<class_float>` | :ref:`get_height<class_CapsuleShape_get_height>` **(** **)** const |
  16. +----------------------------+-------------------------------------------------------------------------------------------------+
  17. | :ref:`float<class_float>` | :ref:`get_radius<class_CapsuleShape_get_radius>` **(** **)** const |
  18. +----------------------------+-------------------------------------------------------------------------------------------------+
  19. | void | :ref:`set_height<class_CapsuleShape_set_height>` **(** :ref:`float<class_float>` height **)** |
  20. +----------------------------+-------------------------------------------------------------------------------------------------+
  21. | void | :ref:`set_radius<class_CapsuleShape_set_radius>` **(** :ref:`float<class_float>` radius **)** |
  22. +----------------------------+-------------------------------------------------------------------------------------------------+
  23. Member Variables
  24. ----------------
  25. - :ref:`float<class_float>` **height** - The capsule's height.
  26. - :ref:`float<class_float>` **radius** - The capsule's radius.
  27. Description
  28. -----------
  29. Capsule shape for collisions.
  30. Member Function Description
  31. ---------------------------
  32. .. _class_CapsuleShape_get_height:
  33. - :ref:`float<class_float>` **get_height** **(** **)** const
  34. Return the capsule height.
  35. .. _class_CapsuleShape_get_radius:
  36. - :ref:`float<class_float>` **get_radius** **(** **)** const
  37. Return the capsule radius.
  38. .. _class_CapsuleShape_set_height:
  39. - void **set_height** **(** :ref:`float<class_float>` height **)**
  40. Set the capsule height.
  41. .. _class_CapsuleShape_set_radius:
  42. - void **set_radius** **(** :ref:`float<class_float>` radius **)**
  43. Set the capsule radius.