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...
MeshConvexDecompositionSettings
继承: RefCounted < Object
用于 Mesh 凸分解操作的参数。
描述
用于 Mesh 凸分解操作的参数。
属性
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
枚举
enum Mode: 🔗
Mode CONVEX_DECOMPOSITION_MODE_VOXEL = 0
常量,表示基于体素的近似凸分解。
Mode CONVEX_DECOMPOSITION_MODE_TETRAHEDRON = 1
常量,表示基于四面体的近似凸分解。
属性说明
bool convex_hull_approximation = true
🔗
如果为 true
,则在计算凸包时使用近似计算。
int convex_hull_downsampling = 4
🔗
控制凸包生成过程的精度,这个过程发生在选择裁剪平面的阶段。范围从 1
到 16
。
最大凹度。范围从 0.0
到 1.0
。
合并操作能够产生的最大凸包数。
int max_num_vertices_per_convex_hull = 32
🔗
控制单个凸包的最大三角形数。范围从 4
到 1024
。
float min_volume_per_convex_hull = 0.0001
🔗
控制生成凸包的自适应采样。范围从 0.0
到 0.01
。
近似凸分解的模式。
如果为 true
,则会在应用凸分解前将网格归一化。
控制搜索“最佳”裁剪平面的颗粒度。范围从 1
到 16
。
bool project_hull_vertices = true
🔗
如果为 true
,则项目会将凸包顶点输出到该源网格之上,提高结果的浮点数精度。
体素化阶段生成的最大体素数量。
float revolution_axes_clipping_bias = 0.05
🔗
控制对沿回转轴裁剪的偏置。范围从 0.0
到 1.0
。
float symmetry_planes_clipping_bias = 0.05
🔗
控制对沿对称平面裁剪的偏置。范围从 0.0
到 1.0
。