soft_volumetric3d
How a volumetric softbody3d fills its mesh with tetrahedra. The soft_volumetric3d component of the Balaur game engine: its 5 properties, and the…
In questa pagina
3d · physics · 5 properties · 3D
How a volumetric softbody3d fills its mesh with tetrahedra.
In a scene, soft_volumetric3d is the node key that applies it. A script reaches each property below as a field on node.soft_volumetric3d: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.soft_volumetric3d.get() and node.soft_volumetric3d.set(table).
Properties
| property | type | default | description |
|---|---|---|---|
boundary_subdivisions |
int | 0 |
How many times a solid fill's cells along the mesh's surface are halved, finer than cell_size Range 0–4. |
cell_size |
float | 0.25 |
How big one tetrahedron is when a volumetric body fills a mesh; smaller is finer, slower and stiffer to tear At least 0.001. |
fill |
enum | solid |
What a volumetric body's cells cover: the mesh's whole inside, which needs a closed mesh, or a crust along its surface alone, which does not One of solid, surface. |
smoothing |
int | 0 |
How many passes pull a solid fill's blocky boundary towards the mesh; 0 leaves it on the cell lattice At least 0. |
smoothing_guard |
float | 0.15 |
How close to the mesh smoothing may pull the boundary, as a fraction of the cell size At least 0. |