MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / setWakeCounter

Method setWakeCounter

physx/source/simulationcontroller/src/ScBodyCore.cpp:461–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461void Sc::BodyCore::setWakeCounter(PxReal wakeCounter, bool forceWakeUp)
462{
463 mCore.wakeCounter = wakeCounter;
464 BodySim* sim = getSim();
465 if(sim)
466 {
467 //wake counter change, we need to trigger dma pxgbodysim data again
468 updateBodySim(sim);
469 if((wakeCounter > 0.0f) || forceWakeUp)
470 sim->wakeUp();
471 sim->postSetWakeCounter(wakeCounter, forceWakeUp);
472 }
473}
474
475void Sc::BodyCore::setSleepThreshold(PxReal t)
476{

Callers

nothing calls this directly

Calls 3

updateBodySimFunction · 0.85
postSetWakeCounterMethod · 0.80
wakeUpMethod · 0.45

Tested by

no test coverage detected