Up to date
This page is up to date for Godot 4.2
.
If you still find outdated information, please open an issue.
MeshConvexDecompositionSettings¶
Inherits: RefCounted < Object
Parameters to be used with a Mesh convex decomposition operation.
Description¶
Parameters to be used with a Mesh convex decomposition operation.
Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Enumerations¶
enum Mode:
Mode CONVEX_DECOMPOSITION_MODE_VOXEL = 0
Constant for voxel-based approximate convex decomposition.
Mode CONVEX_DECOMPOSITION_MODE_TETRAHEDRON = 1
Constant for tetrahedron-based approximate convex decomposition.
Property Descriptions¶
bool convex_hull_approximation = true
If enabled uses approximation for computing convex hulls.
int convex_hull_downsampling = 4
Controls the precision of the convex-hull generation process during the clipping plane selection stage. Ranges from 1
to 16
.
float max_concavity = 1.0
Maximum concavity. Ranges from 0.0
to 1.0
.
int max_convex_hulls = 1
The maximum number of convex hulls to produce from the merge operation.
int max_num_vertices_per_convex_hull = 32
void set_max_num_vertices_per_convex_hull ( int value )
int get_max_num_vertices_per_convex_hull ( )
Controls the maximum number of triangles per convex-hull. Ranges from 4
to 1024
.
float min_volume_per_convex_hull = 0.0001
Controls the adaptive sampling of the generated convex-hulls. Ranges from 0.0
to 0.01
.
Mode mode = 0
Mode for the approximate convex decomposition.
bool normalize_mesh = false
If enabled normalizes the mesh before applying the convex decomposition.