class_capsuleshape2d.rst 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the CapsuleShape2D.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_CapsuleShape2D:
  5. CapsuleShape2D
  6. ==============
  7. **Inherits:** :ref:`Shape2D<class_Shape2D>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Capsule shape for 2D collisions.
  12. Properties
  13. ----------
  14. +---------------------------+-----------------------------------------------------+
  15. | :ref:`float<class_float>` | :ref:`height<class_CapsuleShape2D_property_height>` |
  16. +---------------------------+-----------------------------------------------------+
  17. | :ref:`float<class_float>` | :ref:`radius<class_CapsuleShape2D_property_radius>` |
  18. +---------------------------+-----------------------------------------------------+
  19. Description
  20. -----------
  21. Capsule shape for 2D collisions.
  22. Property Descriptions
  23. ---------------------
  24. .. _class_CapsuleShape2D_property_height:
  25. - :ref:`float<class_float>` **height**
  26. +----------+-------------------+
  27. | *Setter* | set_height(value) |
  28. +----------+-------------------+
  29. | *Getter* | get_height() |
  30. +----------+-------------------+
  31. The capsule's height.
  32. .. _class_CapsuleShape2D_property_radius:
  33. - :ref:`float<class_float>` **radius**
  34. +----------+-------------------+
  35. | *Setter* | set_radius(value) |
  36. +----------+-------------------+
  37. | *Getter* | get_radius() |
  38. +----------+-------------------+
  39. The capsule's radius.