class_csgbox.rst 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. A CSG Box shape.
  10. Description
  11. -----------
  12. This node allows you to create a box for use with the CSG system.
  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. Property Descriptions
  25. ---------------------
  26. .. _class_CSGBox_property_depth:
  27. - :ref:`float<class_float>` **depth**
  28. +-----------+------------------+
  29. | *Default* | ``2.0`` |
  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. ----
  37. .. _class_CSGBox_property_height:
  38. - :ref:`float<class_float>` **height**
  39. +-----------+-------------------+
  40. | *Default* | ``2.0`` |
  41. +-----------+-------------------+
  42. | *Setter* | set_height(value) |
  43. +-----------+-------------------+
  44. | *Getter* | get_height() |
  45. +-----------+-------------------+
  46. Height of the box measured from the center of the box.
  47. ----
  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. ----
  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.
  67. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  68. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  69. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`