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 🔗
If true, uses approximation for computing convex hulls.
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 。
近似凸分解的模式。
If true, normalizes the mesh before applying the convex decomposition.
控制搜索“最佳”裁剪平面的顆粒度。範圍從 1 到 16。
bool project_hull_vertices = true 🔗
If true, projects output convex hull vertices onto the original source mesh to increase floating-point accuracy of the results.
體素化階段生成的最大體素數量。
float revolution_axes_clipping_bias = 0.05 🔗
控制對沿回轉軸裁剪的偏置。範圍從 0.0 到 1.0 。
float symmetry_planes_clipping_bias = 0.05 🔗
控制對沿對稱平面裁剪的偏置。範圍從 0.0 到 1.0 。