NvBlastActorDesc
Defined in lowlevel/NvBlastTypes.h
Variables
Nv::Blast::TkActorDesc::initialBondHealths: Initial bond healths.
Nv::Blast::TkActorDesc::initialSupportChunkHealths: Initial health of all support chunks.
Nv::Blast::TkActorDesc::uniformInitialBondHealth: Initial health of all bonds, if initialBondHealths is NULL (see initialBondHealths).
Nv::Blast::TkActorDesc::uniformInitialLowerSupportChunkHealth: Initial health of all lower-support chunks, if initialSupportChunkHealths is NULL (see initialSupportChunkHealths).
-
struct NvBlastActorDesc
Actor descriptor, used to create an instance of an NvBlastAsset with NvBlastFamilyCreateFirstActor.
See NvBlastFamilyCreateFirstActor.
Subclassed by Nv::Blast::TkActorDesc
Public Members
-
float uniformInitialBondHealth
Initial health of all bonds, if initialBondHealths is NULL (see initialBondHealths).
-
const float *initialBondHealths
Initial bond healths.
If not NULL, this array must be of length NvBlastAssetGetBondCount(asset, logFn). Setting it above Nv::Blast::kUnbreakableLimit will make the bond unbreakable. If NULL, uniformInitialBondHealth must be set.
-
float uniformInitialLowerSupportChunkHealth
Initial health of all lower-support chunks, if initialSupportChunkHealths is NULL (see initialSupportChunkHealths).
-
const float *initialSupportChunkHealths
Initial health of all support chunks.
If not NULL, this must be of length NvBlastAssetGetSupportChunkCount(asset, logFn).nodeCount. The elements in the initialSupportChunkHealth array will correspond to the chunk indices in the NvBlastAssetGetSupportGraph(asset, logFn).chunkIndices array. Every descendent of a support chunk will have its health initialized to its ancestor support chunk’s health, so this initializes all lower-support chunk healths. Setting it above Nv::Blast::kUnbreakableLimit will make the chunk unbreakable. If NULL, uniformInitialLowerSupportChunkHealth must be set.
-
float uniformInitialBondHealth