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...
CSGPrimitive3D
繼承: CSGShape3D < GeometryInstance3D < VisualInstance3D < Node3D < Node < Object
被繼承: CSGBox3D, CSGCylinder3D, CSGMesh3D, CSGPolygon3D, CSGSphere3D, CSGTorus3D
CSG 圖元的基底類別。
說明
各種 CSG 圖元的父類,包含了它們所需的公共程式碼和功能。無法直接使用這個類,請使用繼承它的各種類。
注意:CSG 節點旨在用於關卡原型設計。與使用 PrimitiveMesh 建立 MeshInstance3D 相比,建立 CSG 節點具有顯著的 CPU 成本。在一個 CSG 節點中移動另一個 CSG 節點也會產生顯著的 CPU 消耗,所以應當在遊戲過程中避免進行類似的操作。
教學
屬性
|
屬性說明
如果設定,則每個三角形中頂點的順序會顛倒,從而導致繪製網格的背面。