class_csgbox3d.rst 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/modules/csg/doc_classes/CSGBox3D.xml.
  6. .. _class_CSGBox3D:
  7. CSGBox3D
  8. ========
  9. **Inherits:** :ref:`CSGPrimitive3D<class_CSGPrimitive3D>` **<** :ref:`CSGShape3D<class_CSGShape3D>` **<** :ref:`GeometryInstance3D<class_GeometryInstance3D>` **<** :ref:`VisualInstance3D<class_VisualInstance3D>` **<** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. A CSG Box shape.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This node allows you to create a box for use with the CSG system.
  15. \ **Note:** CSG nodes are intended to be used for level prototyping. Creating CSG nodes has a significant CPU cost compared to creating a :ref:`MeshInstance3D<class_MeshInstance3D>` with a :ref:`PrimitiveMesh<class_PrimitiveMesh>`. Moving a CSG node within another CSG node also has a significant CPU cost, so it should be avoided during gameplay.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - :doc:`Prototyping levels with CSG <../tutorials/3d/csg_tools>`
  20. .. rst-class:: classref-reftable-group
  21. Properties
  22. ----------
  23. .. table::
  24. :widths: auto
  25. +---------------------------------+---------------------------------------------------+----------------------+
  26. | :ref:`Material<class_Material>` | :ref:`material<class_CSGBox3D_property_material>` | |
  27. +---------------------------------+---------------------------------------------------+----------------------+
  28. | :ref:`Vector3<class_Vector3>` | :ref:`size<class_CSGBox3D_property_size>` | ``Vector3(1, 1, 1)`` |
  29. +---------------------------------+---------------------------------------------------+----------------------+
  30. .. rst-class:: classref-section-separator
  31. ----
  32. .. rst-class:: classref-descriptions-group
  33. Property Descriptions
  34. ---------------------
  35. .. _class_CSGBox3D_property_material:
  36. .. rst-class:: classref-property
  37. :ref:`Material<class_Material>` **material** :ref:`🔗<class_CSGBox3D_property_material>`
  38. .. rst-class:: classref-property-setget
  39. - |void| **set_material**\ (\ value\: :ref:`Material<class_Material>`\ )
  40. - :ref:`Material<class_Material>` **get_material**\ (\ )
  41. The material used to render the box.
  42. .. rst-class:: classref-item-separator
  43. ----
  44. .. _class_CSGBox3D_property_size:
  45. .. rst-class:: classref-property
  46. :ref:`Vector3<class_Vector3>` **size** = ``Vector3(1, 1, 1)`` :ref:`🔗<class_CSGBox3D_property_size>`
  47. .. rst-class:: classref-property-setget
  48. - |void| **set_size**\ (\ value\: :ref:`Vector3<class_Vector3>`\ )
  49. - :ref:`Vector3<class_Vector3>` **get_size**\ (\ )
  50. The box's width, height and depth.
  51. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  52. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  53. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  54. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  55. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  56. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  57. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  58. .. |void| replace:: :abbr:`void (No return value.)`