CSGPrimitive3D.xml 1.2 KB

12345678910111213141516171819
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="CSGPrimitive3D" inherits="CSGShape3D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
  3. <brief_description>
  4. Base class for CSG primitives.
  5. </brief_description>
  6. <description>
  7. Parent class for various CSG primitives. It contains code and functionality that is common between them. It cannot be used directly. Instead use one of the various classes that inherit from it.
  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="flip_faces" type="bool" setter="set_flip_faces" getter="get_flip_faces" default="false">
  15. If set, the order of the vertices in each triangle are reversed resulting in the backside of the mesh being drawn.
  16. </member>
  17. </members>
  18. </class>