NvBlastActorGenerateFracture
Defined in lowlevel/NvBlast.h
-
void NvBlastActorGenerateFracture(NvBlastFractureBuffers *commandBuffers, const NvBlastActor *actor, const NvBlastDamageProgram program, const void *programParams, NvBlastLog logFn, NvBlastTimers *timers)
Creates fracture commands for the actor using a damage program and program parameters (material and damage descriptions).
Interpretation of NvBlastFractureBuffers: As input: Counters denote available entries for FractureData. Chunk and Bond userdata are not used. Health values are not used.
As output: Counters denote valid entires in FractureData arrays. Chunks and Bond userdata reflect the respective userdata set during asset initialization, where implemented by the material function. Health values denote how much damage is to be applied.
- Parameters
commandBuffers – [inout] Target buffers to hold generated commands. To avoid data loss, provide an entry for every support chunk and every bond in the original actor.
actor – [in] The NvBlastActor to create fracture commands for.
program – [in] A NvBlastDamageProgram containing damage shaders.
programParams – [in] Parameters for the NvBlastDamageProgram.
logFn – [in] User-supplied message function (see NvBlastLog definition). May be NULL.
timers – [inout] If non-NULL this struct will be filled out with profiling information for the step, in profile build configurations.