class_csgbox.rst 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 CSGBox.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_CSGBox:
  6. CSGBox
  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 Box shape.
  13. Properties
  14. ----------
  15. +---------------------------------+-------------------------------------------------+-----+
  16. | :ref:`float<class_float>` | :ref:`depth<class_CSGBox_property_depth>` | 2.0 |
  17. +---------------------------------+-------------------------------------------------+-----+
  18. | :ref:`float<class_float>` | :ref:`height<class_CSGBox_property_height>` | 2.0 |
  19. +---------------------------------+-------------------------------------------------+-----+
  20. | :ref:`Material<class_Material>` | :ref:`material<class_CSGBox_property_material>` | |
  21. +---------------------------------+-------------------------------------------------+-----+
  22. | :ref:`float<class_float>` | :ref:`width<class_CSGBox_property_width>` | 2.0 |
  23. +---------------------------------+-------------------------------------------------+-----+
  24. Description
  25. -----------
  26. This node allows you to create a box for use with the CSG system.
  27. Property Descriptions
  28. ---------------------
  29. .. _class_CSGBox_property_depth:
  30. - :ref:`float<class_float>` **depth**
  31. +-----------+------------------+
  32. | *Default* | 2.0 |
  33. +-----------+------------------+
  34. | *Setter* | set_depth(value) |
  35. +-----------+------------------+
  36. | *Getter* | get_depth() |
  37. +-----------+------------------+
  38. Depth of the box measured from the center of the box.
  39. .. _class_CSGBox_property_height:
  40. - :ref:`float<class_float>` **height**
  41. +-----------+-------------------+
  42. | *Default* | 2.0 |
  43. +-----------+-------------------+
  44. | *Setter* | set_height(value) |
  45. +-----------+-------------------+
  46. | *Getter* | get_height() |
  47. +-----------+-------------------+
  48. Height of the box measured from the center of the box.
  49. .. _class_CSGBox_property_material:
  50. - :ref:`Material<class_Material>` **material**
  51. +----------+---------------------+
  52. | *Setter* | set_material(value) |
  53. +----------+---------------------+
  54. | *Getter* | get_material() |
  55. +----------+---------------------+
  56. The material used to render the box.
  57. .. _class_CSGBox_property_width:
  58. - :ref:`float<class_float>` **width**
  59. +-----------+------------------+
  60. | *Default* | 2.0 |
  61. +-----------+------------------+
  62. | *Setter* | set_width(value) |
  63. +-----------+------------------+
  64. | *Getter* | get_width() |
  65. +-----------+------------------+
  66. Width of the box measured from the center of the box.