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...
CSGBox3D
继承: CSGPrimitive3D < CSGShape3D < GeometryInstance3D < VisualInstance3D < Node3D < Node < Object
CSG 盒子形状。
描述
此节点允许你创建与 CSG 系统一起使用的盒子。
注意:CSG 节点旨在用于关卡原型设计。与使用 PrimitiveMesh 创建 MeshInstance3D 相比,创建 CSG 节点具有显着的 CPU 成本。在另一个 CSG 节点中,移动一个 CSG 节点,也会大量消耗 CPU,因此在游戏过程中,应该避免这种情况。
教程
属性
|
属性说明
用于渲染盒子的材质。
Vector3 size = Vector3(1, 1, 1)
🔗
该盒子的宽度、高度和深度。