class_capsuleshape.rst 2.3 KB

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