class_capsulemesh.rst 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the CapsuleMesh.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_CapsuleMesh:
  5. CapsuleMesh
  6. ===========
  7. **Inherits:** :ref:`PrimitiveMesh<class_PrimitiveMesh>` **<** :ref:`Mesh<class_Mesh>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Class representing a capsule-shaped :ref:`PrimitiveMesh<class_PrimitiveMesh>`.
  12. Properties
  13. ----------
  14. +---------------------------+-----------------------------------------------------------+
  15. | :ref:`float<class_float>` | :ref:`mid_height<class_CapsuleMesh_mid_height>` |
  16. +---------------------------+-----------------------------------------------------------+
  17. | :ref:`int<class_int>` | :ref:`radial_segments<class_CapsuleMesh_radial_segments>` |
  18. +---------------------------+-----------------------------------------------------------+
  19. | :ref:`float<class_float>` | :ref:`radius<class_CapsuleMesh_radius>` |
  20. +---------------------------+-----------------------------------------------------------+
  21. | :ref:`int<class_int>` | :ref:`rings<class_CapsuleMesh_rings>` |
  22. +---------------------------+-----------------------------------------------------------+
  23. Description
  24. -----------
  25. Class representing a capsule-shaped :ref:`PrimitiveMesh<class_PrimitiveMesh>`.
  26. Property Descriptions
  27. ---------------------
  28. .. _class_CapsuleMesh_mid_height:
  29. - :ref:`float<class_float>` **mid_height**
  30. +----------+-----------------------+
  31. | *Setter* | set_mid_height(value) |
  32. +----------+-----------------------+
  33. | *Getter* | get_mid_height() |
  34. +----------+-----------------------+
  35. Height of the capsule mesh from the center point. Defaults to 1.0.
  36. .. _class_CapsuleMesh_radial_segments:
  37. - :ref:`int<class_int>` **radial_segments**
  38. +----------+----------------------------+
  39. | *Setter* | set_radial_segments(value) |
  40. +----------+----------------------------+
  41. | *Getter* | get_radial_segments() |
  42. +----------+----------------------------+
  43. Number of radial segments on the capsule mesh. Defaults to 64.
  44. .. _class_CapsuleMesh_radius:
  45. - :ref:`float<class_float>` **radius**
  46. +----------+-------------------+
  47. | *Setter* | set_radius(value) |
  48. +----------+-------------------+
  49. | *Getter* | get_radius() |
  50. +----------+-------------------+
  51. Radius of the capsule mesh. Defaults to 1.0.
  52. .. _class_CapsuleMesh_rings:
  53. - :ref:`int<class_int>` **rings**
  54. +----------+------------------+
  55. | *Setter* | set_rings(value) |
  56. +----------+------------------+
  57. | *Getter* | get_rings() |
  58. +----------+------------------+
  59. Number of rings along the height of the capsule. Defaults to 8.