Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/modules/csg/doc_classes/CSGBox3D.xml
10278 views
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<class name="CSGBox3D" inherits="CSGPrimitive3D" 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 [MeshInstance3D] 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
<members>
14
<member name="material" type="Material" setter="set_material" getter="get_material">
15
The material used to render the box.
16
</member>
17
<member name="size" type="Vector3" setter="set_size" getter="get_size" default="Vector3(1, 1, 1)">
18
The box's width, height and depth.
19
</member>
20
</members>
21
</class>
22
23