class_csgcylinder.rst 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the CSGCylinder.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_CSGCylinder:
  6. CSGCylinder
  7. ===========
  8. **Inherits:** :ref:`CSGPrimitive<class_CSGPrimitive>` **<** :ref:`CSGShape<class_CSGShape>` **<** :ref:`GeometryInstance<class_GeometryInstance>` **<** :ref:`VisualInstance<class_VisualInstance>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. A CSG Cylinder shape.
  10. Description
  11. -----------
  12. This node allows you to create a cylinder (or cone) for use with the CSG system.
  13. Properties
  14. ----------
  15. +---------------------------------+--------------------------------------------------------------+-----------+
  16. | :ref:`bool<class_bool>` | :ref:`cone<class_CSGCylinder_property_cone>` | ``false`` |
  17. +---------------------------------+--------------------------------------------------------------+-----------+
  18. | :ref:`float<class_float>` | :ref:`height<class_CSGCylinder_property_height>` | ``1.0`` |
  19. +---------------------------------+--------------------------------------------------------------+-----------+
  20. | :ref:`Material<class_Material>` | :ref:`material<class_CSGCylinder_property_material>` | |
  21. +---------------------------------+--------------------------------------------------------------+-----------+
  22. | :ref:`float<class_float>` | :ref:`radius<class_CSGCylinder_property_radius>` | ``1.0`` |
  23. +---------------------------------+--------------------------------------------------------------+-----------+
  24. | :ref:`int<class_int>` | :ref:`sides<class_CSGCylinder_property_sides>` | ``8`` |
  25. +---------------------------------+--------------------------------------------------------------+-----------+
  26. | :ref:`bool<class_bool>` | :ref:`smooth_faces<class_CSGCylinder_property_smooth_faces>` | ``true`` |
  27. +---------------------------------+--------------------------------------------------------------+-----------+
  28. Property Descriptions
  29. ---------------------
  30. .. _class_CSGCylinder_property_cone:
  31. - :ref:`bool<class_bool>` **cone**
  32. +-----------+-----------------+
  33. | *Default* | ``false`` |
  34. +-----------+-----------------+
  35. | *Setter* | set_cone(value) |
  36. +-----------+-----------------+
  37. | *Getter* | is_cone() |
  38. +-----------+-----------------+
  39. If ``true`` a cone is created, the :ref:`radius<class_CSGCylinder_property_radius>` will only apply to one side.
  40. ----
  41. .. _class_CSGCylinder_property_height:
  42. - :ref:`float<class_float>` **height**
  43. +-----------+-------------------+
  44. | *Default* | ``1.0`` |
  45. +-----------+-------------------+
  46. | *Setter* | set_height(value) |
  47. +-----------+-------------------+
  48. | *Getter* | get_height() |
  49. +-----------+-------------------+
  50. The height of the cylinder.
  51. ----
  52. .. _class_CSGCylinder_property_material:
  53. - :ref:`Material<class_Material>` **material**
  54. +----------+---------------------+
  55. | *Setter* | set_material(value) |
  56. +----------+---------------------+
  57. | *Getter* | get_material() |
  58. +----------+---------------------+
  59. The material used to render the cylinder.
  60. ----
  61. .. _class_CSGCylinder_property_radius:
  62. - :ref:`float<class_float>` **radius**
  63. +-----------+-------------------+
  64. | *Default* | ``1.0`` |
  65. +-----------+-------------------+
  66. | *Setter* | set_radius(value) |
  67. +-----------+-------------------+
  68. | *Getter* | get_radius() |
  69. +-----------+-------------------+
  70. The radius of the cylinder.
  71. ----
  72. .. _class_CSGCylinder_property_sides:
  73. - :ref:`int<class_int>` **sides**
  74. +-----------+------------------+
  75. | *Default* | ``8`` |
  76. +-----------+------------------+
  77. | *Setter* | set_sides(value) |
  78. +-----------+------------------+
  79. | *Getter* | get_sides() |
  80. +-----------+------------------+
  81. The number of sides of the cylinder, the higher this number the more detail there will be in the cylinder.
  82. ----
  83. .. _class_CSGCylinder_property_smooth_faces:
  84. - :ref:`bool<class_bool>` **smooth_faces**
  85. +-----------+-------------------------+
  86. | *Default* | ``true`` |
  87. +-----------+-------------------------+
  88. | *Setter* | set_smooth_faces(value) |
  89. +-----------+-------------------------+
  90. | *Getter* | get_smooth_faces() |
  91. +-----------+-------------------------+
  92. If ``true`` the normals of the cylinder are set to give a smooth effect making the cylinder seem rounded. If ``false`` the cylinder will have a flat shaded look.
  93. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  94. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  95. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`