The CSG base class.
- OPERATION_UNION = 0 — Geometry of both primitives is merged, intersecting geometry is removed.
- OPERATION_INTERSECTION = 1 — Only intersecting geometry remains, the rest is removed.
- OPERATION_SUBTRACTION = 2 — The second shape is susbtracted from the first, leaving a dent with it’s shape.
This is the CSG base class that provides CSG operation support to the various CSG nodes in Godot.
- bool calculate_tangents
Calculate tangents for the CSG shape which allows the use of normal maps. This is only applied on the root shape, this setting is ignored on any child.
- Operation operation
The operation that is performed on this shape. This is ignored for the first CSG child node as the operation is between this node and the previous child of this nodes parent.
- float snap
- bool use_collision
Adds a collision shape to the physics engine for our CSG shape. This will always act like a static body. Note that the collision shape is still active even if the CSG shape itself is hidden.