class_csgtorus.rst 4.4 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 CSGTorus.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_CSGTorus:
  6. CSGTorus
  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. **Category:** Core
  10. Brief Description
  11. -----------------
  12. A CSG Torus shape.
  13. Properties
  14. ----------
  15. +---------------------------------+-----------------------------------------------------------+------+
  16. | :ref:`float<class_float>` | :ref:`inner_radius<class_CSGTorus_property_inner_radius>` | 2.0 |
  17. +---------------------------------+-----------------------------------------------------------+------+
  18. | :ref:`Material<class_Material>` | :ref:`material<class_CSGTorus_property_material>` | |
  19. +---------------------------------+-----------------------------------------------------------+------+
  20. | :ref:`float<class_float>` | :ref:`outer_radius<class_CSGTorus_property_outer_radius>` | 3.0 |
  21. +---------------------------------+-----------------------------------------------------------+------+
  22. | :ref:`int<class_int>` | :ref:`ring_sides<class_CSGTorus_property_ring_sides>` | 6 |
  23. +---------------------------------+-----------------------------------------------------------+------+
  24. | :ref:`int<class_int>` | :ref:`sides<class_CSGTorus_property_sides>` | 8 |
  25. +---------------------------------+-----------------------------------------------------------+------+
  26. | :ref:`bool<class_bool>` | :ref:`smooth_faces<class_CSGTorus_property_smooth_faces>` | true |
  27. +---------------------------------+-----------------------------------------------------------+------+
  28. Description
  29. -----------
  30. This node allows you to create a torus for use with the CSG system.
  31. Property Descriptions
  32. ---------------------
  33. .. _class_CSGTorus_property_inner_radius:
  34. - :ref:`float<class_float>` **inner_radius**
  35. +-----------+-------------------------+
  36. | *Default* | 2.0 |
  37. +-----------+-------------------------+
  38. | *Setter* | set_inner_radius(value) |
  39. +-----------+-------------------------+
  40. | *Getter* | get_inner_radius() |
  41. +-----------+-------------------------+
  42. The inner radius of the torus.
  43. .. _class_CSGTorus_property_material:
  44. - :ref:`Material<class_Material>` **material**
  45. +----------+---------------------+
  46. | *Setter* | set_material(value) |
  47. +----------+---------------------+
  48. | *Getter* | get_material() |
  49. +----------+---------------------+
  50. The material used to render the torus.
  51. .. _class_CSGTorus_property_outer_radius:
  52. - :ref:`float<class_float>` **outer_radius**
  53. +-----------+-------------------------+
  54. | *Default* | 3.0 |
  55. +-----------+-------------------------+
  56. | *Setter* | set_outer_radius(value) |
  57. +-----------+-------------------------+
  58. | *Getter* | get_outer_radius() |
  59. +-----------+-------------------------+
  60. The outer radius of the torus.
  61. .. _class_CSGTorus_property_ring_sides:
  62. - :ref:`int<class_int>` **ring_sides**
  63. +-----------+-----------------------+
  64. | *Default* | 6 |
  65. +-----------+-----------------------+
  66. | *Setter* | set_ring_sides(value) |
  67. +-----------+-----------------------+
  68. | *Getter* | get_ring_sides() |
  69. +-----------+-----------------------+
  70. The number of edges each ring of the torus is constructed of.
  71. .. _class_CSGTorus_property_sides:
  72. - :ref:`int<class_int>` **sides**
  73. +-----------+------------------+
  74. | *Default* | 8 |
  75. +-----------+------------------+
  76. | *Setter* | set_sides(value) |
  77. +-----------+------------------+
  78. | *Getter* | get_sides() |
  79. +-----------+------------------+
  80. The number of slices the torus is constructed of.
  81. .. _class_CSGTorus_property_smooth_faces:
  82. - :ref:`bool<class_bool>` **smooth_faces**
  83. +-----------+-------------------------+
  84. | *Default* | true |
  85. +-----------+-------------------------+
  86. | *Setter* | set_smooth_faces(value) |
  87. +-----------+-------------------------+
  88. | *Getter* | get_smooth_faces() |
  89. +-----------+-------------------------+
  90. If ``true`` the normals of the torus are set to give a smooth effect making the torus seem rounded. If ``false`` the torus will have a flat shaded look.