#include <FractureTools.h>
Public Types | |
| enum | NoiseMode { NoiseWavePlane = 0, NoisePerlin2D, NoisePerlin3D, NoiseModeCount } |
Public Member Functions | |
| FractureVoronoiDesc () | |
| void | setToDefault () |
Public Attributes | |
| unsigned | siteCount |
| const physx::PxVec3 * | sites |
| NoiseParameters | faceNoise |
| bool | instanceChunks |
| bool | useDisplacementMaps |
| unsigned | noiseMode |
| physx::NxFractureMaterialDesc | materialDesc |
Descriptor for Voronoi decomposition fracturing.
| FractureTools::FractureVoronoiDesc::FractureVoronoiDesc | ( | ) | [inline] |
Constructor sets defaults
| void FractureTools::FractureVoronoiDesc::setToDefault | ( | ) | [inline] |
Sets the default values:
siteCount = 0; sites = NULL; faceNoise.setToDefault(); instanceChunks = false; useDisplacementMaps = false; noiseMode = NoiseWavePlane; materialDesc.setToDefault();
Describes the characteristics of the interior surfaces. If the noise is 0, the cutting surface will smooth. Otherwise, there will be some variation, or roughness, to the surface.
Note: this noise is applied only to the graphics of the chunks. The chunks' collision volumes AND the chunks' children (if fractured further) will NOT be affected by this noise.
If instanceChunks is true, corresponding chunks in different destructible actors will be instanced.
| physx::NxFractureMaterialDesc FractureTools::FractureVoronoiDesc::materialDesc |
Material application descriptor used for each slice. Note: the U-direction and UV offset in the descriptor will be ignored - UV mapping is done in arbitrary orientation and translation on each chunk face.
The noise mode. If displacement maps are enabled, NoisePerlin3D will be used.
Number of cell sites in the sites array. Must be positive.
| const physx::PxVec3* FractureTools::FractureVoronoiDesc::sites |
Array of cell sites. The length of this array is given by siteCount.
If true, slice geometry and noise will be stored in a separate displacement offset buffer.