Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
CSGCombiner3D
繼承: CSGShape3D < GeometryInstance3D < VisualInstance3D < Node3D < Node < Object
允許你組合其他 CSG 修改器的 CSG 節點。
說明
對於形狀的複雜排列,有時需要向 CSG 節點新增結構。CSGCombiner3D 節點允許建立該結構。節點封裝了其子節點的 CSG 操作的結果。通過這種方式,可以對作為一個 CSGCombiner3D 節點的子節點的一組形狀進行操作,並對作為第二個 CSGCombiner3D 節點的子節點的第二組形狀進行一組單獨的操作,然後執行以下操作: 將兩個最終結果作為輸入來建立最終形狀。
注意:CSG 節點旨在用於關卡原型設計。與使用 PrimitiveMesh 建立 MeshInstance3D 相比,建立 CSG 節點具有顯著的 CPU 成本。在另一個 CSG 節點中,移動一個 CSG 節點,也會大量消耗 CPU,因此在遊戲過程中,應該避免這種情況。