MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Blast / immediateDamage

Method immediateDamage

samples/SampleBase/blast/BlastController.cpp:225–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225void BlastController::immediateDamage(ExtPxActor* actor, BlastFamily& family, const NvBlastDamageProgram& program,
226 const void* damageDesc)
227{
228 NvBlastExtProgramParams programParams = { damageDesc, &family.getMaterial(),
229 actor->getFamily().getPxAsset().getAccelerator() };
230
231 NvBlastFractureBuffers& fractureEvents = getFractureBuffers(actor);
232 actor->getTkActor().generateFracture(&fractureEvents, program, &programParams);
233 actor->getTkActor().applyFracture(nullptr, &fractureEvents);
234}
235
236
237///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Callers 1

DamageToolControllerMethod · 0.80

Calls 6

getMaterialMethod · 0.80
getPxAssetMethod · 0.80
getFamilyMethod · 0.80
getAcceleratorMethod · 0.45
generateFractureMethod · 0.45
applyFractureMethod · 0.45

Tested by

no test coverage detected