class_csgbox.rst 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the CSGBox.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_CSGBox:
  5. CSGBox
  6. ======
  7. **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>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. A CSG Box shape.
  12. Properties
  13. ----------
  14. +---------------------------------+-------------------------------------------------+-----+
  15. | :ref:`float<class_float>` | :ref:`depth<class_CSGBox_property_depth>` | 2.0 |
  16. +---------------------------------+-------------------------------------------------+-----+
  17. | :ref:`float<class_float>` | :ref:`height<class_CSGBox_property_height>` | 2.0 |
  18. +---------------------------------+-------------------------------------------------+-----+
  19. | :ref:`Material<class_Material>` | :ref:`material<class_CSGBox_property_material>` | |
  20. +---------------------------------+-------------------------------------------------+-----+
  21. | :ref:`float<class_float>` | :ref:`width<class_CSGBox_property_width>` | 2.0 |
  22. +---------------------------------+-------------------------------------------------+-----+
  23. Description
  24. -----------
  25. This node allows you to create a box for use with the CSG system.
  26. Property Descriptions
  27. ---------------------
  28. .. _class_CSGBox_property_depth:
  29. - :ref:`float<class_float>` **depth**
  30. +-----------+------------------+
  31. | *Default* | 2.0 |
  32. +-----------+------------------+
  33. | *Setter* | set_depth(value) |
  34. +-----------+------------------+
  35. | *Getter* | get_depth() |
  36. +-----------+------------------+
  37. Depth of the box measured from the center of the box.
  38. .. _class_CSGBox_property_height:
  39. - :ref:`float<class_float>` **height**
  40. +-----------+-------------------+
  41. | *Default* | 2.0 |
  42. +-----------+-------------------+
  43. | *Setter* | set_height(value) |
  44. +-----------+-------------------+
  45. | *Getter* | get_height() |
  46. +-----------+-------------------+
  47. Height of the box measured from the center of the box.
  48. .. _class_CSGBox_property_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 box.
  56. .. _class_CSGBox_property_width:
  57. - :ref:`float<class_float>` **width**
  58. +-----------+------------------+
  59. | *Default* | 2.0 |
  60. +-----------+------------------+
  61. | *Setter* | set_width(value) |
  62. +-----------+------------------+
  63. | *Getter* | get_width() |
  64. +-----------+------------------+
  65. Width of the box measured from the center of the box.