class_csgbox.rst 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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>` |
  16. +---------------------------------+-------------------------------------------------+
  17. | :ref:`float<class_float>` | :ref:`height<class_CSGBox_property_height>` |
  18. +---------------------------------+-------------------------------------------------+
  19. | :ref:`Material<class_Material>` | :ref:`material<class_CSGBox_property_material>` |
  20. +---------------------------------+-------------------------------------------------+
  21. | :ref:`float<class_float>` | :ref:`width<class_CSGBox_property_width>` |
  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. | *Setter* | set_depth(value) |
  32. +----------+------------------+
  33. | *Getter* | get_depth() |
  34. +----------+------------------+
  35. Depth of the box measured from the center of the box.
  36. .. _class_CSGBox_property_height:
  37. - :ref:`float<class_float>` **height**
  38. +----------+-------------------+
  39. | *Setter* | set_height(value) |
  40. +----------+-------------------+
  41. | *Getter* | get_height() |
  42. +----------+-------------------+
  43. Height of the box measured from the center of the box.
  44. .. _class_CSGBox_property_material:
  45. - :ref:`Material<class_Material>` **material**
  46. +----------+---------------------+
  47. | *Setter* | set_material(value) |
  48. +----------+---------------------+
  49. | *Getter* | get_material() |
  50. +----------+---------------------+
  51. The material used to render the box.
  52. .. _class_CSGBox_property_width:
  53. - :ref:`float<class_float>` **width**
  54. +----------+------------------+
  55. | *Setter* | set_width(value) |
  56. +----------+------------------+
  57. | *Getter* | get_width() |
  58. +----------+------------------+
  59. Width of the box measured from the center of the box.