class_csgcylinder.rst 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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:`VisualInstance<class_VisualInstance>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. A CSG Cylinder shape.
  13. Properties
  14. ----------
  15. +---------------------------------+--------------------------------------------------------------+
  16. | :ref:`bool<class_bool>` | :ref:`cone<class_CSGCylinder_property_cone>` |
  17. +---------------------------------+--------------------------------------------------------------+
  18. | :ref:`float<class_float>` | :ref:`height<class_CSGCylinder_property_height>` |
  19. +---------------------------------+--------------------------------------------------------------+
  20. | :ref:`Material<class_Material>` | :ref:`material<class_CSGCylinder_property_material>` |
  21. +---------------------------------+--------------------------------------------------------------+
  22. | :ref:`float<class_float>` | :ref:`radius<class_CSGCylinder_property_radius>` |
  23. +---------------------------------+--------------------------------------------------------------+
  24. | :ref:`int<class_int>` | :ref:`sides<class_CSGCylinder_property_sides>` |
  25. +---------------------------------+--------------------------------------------------------------+
  26. | :ref:`bool<class_bool>` | :ref:`smooth_faces<class_CSGCylinder_property_smooth_faces>` |
  27. +---------------------------------+--------------------------------------------------------------+
  28. Description
  29. -----------
  30. This node allows you to create a cylinder (or cone) for use with the CSG system.
  31. Property Descriptions
  32. ---------------------
  33. .. _class_CSGCylinder_property_cone:
  34. - :ref:`bool<class_bool>` **cone**
  35. +----------+-----------------+
  36. | *Setter* | set_cone(value) |
  37. +----------+-----------------+
  38. | *Getter* | is_cone() |
  39. +----------+-----------------+
  40. If ``true`` a cone is created, the :ref:`radius<class_CSGCylinder_property_radius>` will only apply to one side.
  41. ----
  42. .. _class_CSGCylinder_property_height:
  43. - :ref:`float<class_float>` **height**
  44. +----------+-------------------+
  45. | *Setter* | set_height(value) |
  46. +----------+-------------------+
  47. | *Getter* | get_height() |
  48. +----------+-------------------+
  49. The height of the cylinder.
  50. ----
  51. .. _class_CSGCylinder_property_material:
  52. - :ref:`Material<class_Material>` **material**
  53. +----------+---------------------+
  54. | *Setter* | set_material(value) |
  55. +----------+---------------------+
  56. | *Getter* | get_material() |
  57. +----------+---------------------+
  58. The material used to render the cylinder.
  59. ----
  60. .. _class_CSGCylinder_property_radius:
  61. - :ref:`float<class_float>` **radius**
  62. +----------+-------------------+
  63. | *Setter* | set_radius(value) |
  64. +----------+-------------------+
  65. | *Getter* | get_radius() |
  66. +----------+-------------------+
  67. The radius of the cylinder.
  68. ----
  69. .. _class_CSGCylinder_property_sides:
  70. - :ref:`int<class_int>` **sides**
  71. +----------+------------------+
  72. | *Setter* | set_sides(value) |
  73. +----------+------------------+
  74. | *Getter* | get_sides() |
  75. +----------+------------------+
  76. The number of sides of the cylinder, the higher this number the more detail there will be in the cylinder.
  77. ----
  78. .. _class_CSGCylinder_property_smooth_faces:
  79. - :ref:`bool<class_bool>` **smooth_faces**
  80. +----------+-------------------------+
  81. | *Setter* | set_smooth_faces(value) |
  82. +----------+-------------------------+
  83. | *Getter* | get_smooth_faces() |
  84. +----------+-------------------------+
  85. 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.