class_csgtorus.rst 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the CSGTorus.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_CSGTorus:
  5. CSGTorus
  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 Torus shape.
  12. Properties
  13. ----------
  14. +---------------------------------+-----------------------------------------------------------+
  15. | :ref:`float<class_float>` | :ref:`inner_radius<class_CSGTorus_property_inner_radius>` |
  16. +---------------------------------+-----------------------------------------------------------+
  17. | :ref:`Material<class_Material>` | :ref:`material<class_CSGTorus_property_material>` |
  18. +---------------------------------+-----------------------------------------------------------+
  19. | :ref:`float<class_float>` | :ref:`outer_radius<class_CSGTorus_property_outer_radius>` |
  20. +---------------------------------+-----------------------------------------------------------+
  21. | :ref:`int<class_int>` | :ref:`ring_sides<class_CSGTorus_property_ring_sides>` |
  22. +---------------------------------+-----------------------------------------------------------+
  23. | :ref:`int<class_int>` | :ref:`sides<class_CSGTorus_property_sides>` |
  24. +---------------------------------+-----------------------------------------------------------+
  25. | :ref:`bool<class_bool>` | :ref:`smooth_faces<class_CSGTorus_property_smooth_faces>` |
  26. +---------------------------------+-----------------------------------------------------------+
  27. Description
  28. -----------
  29. This node allows you to create a torus for use with the CSG system.
  30. Property Descriptions
  31. ---------------------
  32. .. _class_CSGTorus_property_inner_radius:
  33. - :ref:`float<class_float>` **inner_radius**
  34. +----------+-------------------------+
  35. | *Setter* | set_inner_radius(value) |
  36. +----------+-------------------------+
  37. | *Getter* | get_inner_radius() |
  38. +----------+-------------------------+
  39. The inner radius of the torus.
  40. .. _class_CSGTorus_property_material:
  41. - :ref:`Material<class_Material>` **material**
  42. +----------+---------------------+
  43. | *Setter* | set_material(value) |
  44. +----------+---------------------+
  45. | *Getter* | get_material() |
  46. +----------+---------------------+
  47. The material used to render the torus.
  48. .. _class_CSGTorus_property_outer_radius:
  49. - :ref:`float<class_float>` **outer_radius**
  50. +----------+-------------------------+
  51. | *Setter* | set_outer_radius(value) |
  52. +----------+-------------------------+
  53. | *Getter* | get_outer_radius() |
  54. +----------+-------------------------+
  55. The outer radius of the torus.
  56. .. _class_CSGTorus_property_ring_sides:
  57. - :ref:`int<class_int>` **ring_sides**
  58. +----------+-----------------------+
  59. | *Setter* | set_ring_sides(value) |
  60. +----------+-----------------------+
  61. | *Getter* | get_ring_sides() |
  62. +----------+-----------------------+
  63. The number of edges each ring of the torus is constructed of.
  64. .. _class_CSGTorus_property_sides:
  65. - :ref:`int<class_int>` **sides**
  66. +----------+------------------+
  67. | *Setter* | set_sides(value) |
  68. +----------+------------------+
  69. | *Getter* | get_sides() |
  70. +----------+------------------+
  71. The number of slices the torus is constructed of.
  72. .. _class_CSGTorus_property_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 torus are set to give a smooth effect making the torus seem rounded. When false the torus will have a flat shaded look.