class_csgcylinder.rst 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the CSGCylinder.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_CSGCylinder:
  5. CSGCylinder
  6. ===========
  7. **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>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. A CSG Cylinder shape.
  12. Properties
  13. ----------
  14. +---------------------------------+-----------------------------------------------------+
  15. | :ref:`bool<class_bool>` | :ref:`cone<class_CSGCylinder_cone>` |
  16. +---------------------------------+-----------------------------------------------------+
  17. | :ref:`float<class_float>` | :ref:`height<class_CSGCylinder_height>` |
  18. +---------------------------------+-----------------------------------------------------+
  19. | :ref:`Material<class_Material>` | :ref:`material<class_CSGCylinder_material>` |
  20. +---------------------------------+-----------------------------------------------------+
  21. | :ref:`float<class_float>` | :ref:`radius<class_CSGCylinder_radius>` |
  22. +---------------------------------+-----------------------------------------------------+
  23. | :ref:`int<class_int>` | :ref:`sides<class_CSGCylinder_sides>` |
  24. +---------------------------------+-----------------------------------------------------+
  25. | :ref:`bool<class_bool>` | :ref:`smooth_faces<class_CSGCylinder_smooth_faces>` |
  26. +---------------------------------+-----------------------------------------------------+
  27. Description
  28. -----------
  29. This node allows you to create a cylinder (or cone) for use with the CSG system.
  30. Property Descriptions
  31. ---------------------
  32. .. _class_CSGCylinder_cone:
  33. - :ref:`bool<class_bool>` **cone**
  34. +----------+-----------------+
  35. | *Setter* | set_cone(value) |
  36. +----------+-----------------+
  37. | *Getter* | is_cone() |
  38. +----------+-----------------+
  39. If true a cone is created, the :ref:`radius<class_CSGCylinder_radius>` will only apply to one side.
  40. .. _class_CSGCylinder_height:
  41. - :ref:`float<class_float>` **height**
  42. +----------+-------------------+
  43. | *Setter* | set_height(value) |
  44. +----------+-------------------+
  45. | *Getter* | get_height() |
  46. +----------+-------------------+
  47. The height of the cylinder.
  48. .. _class_CSGCylinder_material:
  49. - :ref:`Material<class_Material>` **material**
  50. +----------+---------------------+
  51. | *Setter* | set_material(value) |
  52. +----------+---------------------+
  53. | *Getter* | get_material() |
  54. +----------+---------------------+
  55. The material used to render the cylinder.
  56. .. _class_CSGCylinder_radius:
  57. - :ref:`float<class_float>` **radius**
  58. +----------+-------------------+
  59. | *Setter* | set_radius(value) |
  60. +----------+-------------------+
  61. | *Getter* | get_radius() |
  62. +----------+-------------------+
  63. The radius of the cylinder.
  64. .. _class_CSGCylinder_sides:
  65. - :ref:`int<class_int>` **sides**
  66. +----------+------------------+
  67. | *Setter* | set_sides(value) |
  68. +----------+------------------+
  69. | *Getter* | get_sides() |
  70. +----------+------------------+
  71. The number of sides of the cylinder, the higher this number the more detail there will be in the cylinder.
  72. .. _class_CSGCylinder_smooth_faces:
  73. - :ref:`bool<class_bool>` **smooth_faces**
  74. +----------+-------------------------+
  75. | *Setter* | set_smooth_faces(value) |
  76. +----------+-------------------------+
  77. | *Getter* | get_smooth_faces() |
  78. +----------+-------------------------+
  79. If true the normals of the cylinder are set to give a smooth effect making the cylinder seem rounded. When false the cylinder will have a flat shaded look.