CSGBox.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="CSGBox" inherits="CSGPrimitive" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
  3. <brief_description>
  4. A CSG Box shape.
  5. </brief_description>
  6. <description>
  7. This node allows you to create a box for use with the CSG system.
  8. [b]Note:[/b] CSG nodes are intended to be used for level prototyping. Creating CSG nodes has a significant CPU cost compared to creating a [MeshInstance] with a [PrimitiveMesh]. Moving a CSG node within another CSG node also has a significant CPU cost, so it should be avoided during gameplay.
  9. </description>
  10. <tutorials>
  11. <link title="Prototyping levels with CSG">$DOCS_URL/tutorials/3d/csg_tools.html</link>
  12. </tutorials>
  13. <methods>
  14. </methods>
  15. <members>
  16. <member name="depth" type="float" setter="set_depth" getter="get_depth" default="2.0">
  17. Depth of the box measured from the center of the box.
  18. </member>
  19. <member name="height" type="float" setter="set_height" getter="get_height" default="2.0">
  20. Height of the box measured from the center of the box.
  21. </member>
  22. <member name="material" type="Material" setter="set_material" getter="get_material">
  23. The material used to render the box.
  24. </member>
  25. <member name="width" type="float" setter="set_width" getter="get_width" default="2.0">
  26. Width of the box measured from the center of the box.
  27. </member>
  28. </members>
  29. <constants>
  30. </constants>
  31. </class>