NvBlastChunk

Defined in lowlevel/NvBlastTypes.h

Variables

struct NvBlastChunk

Represents a piece of a destructible asset which may be realized as an entity with a physical and graphical component.

Chunks may form a hierarchical decomposition of the asset. They contain parent and child chunk index information which defines the hierarchy. The parent and child chunk indices are their positions with the NvBlastAsset::chunks array.

Child chunk indices are contiguous, starting at firstChildIndex and ending with childIndexStop - 1.

Public Members

float centroid[3]

Central position for the chunk’s volume.

float volume

Volume of the chunk.

uint32_t parentChunkIndex

Index of parent (UINT32_MAX denotes no parent)

uint32_t firstChildIndex

Index of first child.

uint32_t childIndexStop

Stop for child indices.

uint32_t userData

Field for user to associate with external data.