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

Method updateAfterSplit

samples/SampleBase/blast/BlastFamily.cpp:135–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void BlastFamily::updateAfterSplit(float dt)
136{
137 PROFILER_BEGIN("Actor Health Update");
138 for (const ExtPxActor* actor : m_actors)
139 {
140 onActorUpdate(*actor);
141
142 // update health if neccessary
143 if (m_actorsToUpdateHealth.find(actor) != m_actorsToUpdateHealth.end())
144 {
145 onActorHealthUpdate(*actor);
146 }
147 }
148 PROFILER_END();
149
150 PROFILER_BEGIN("Stress Solver");
151 // update stress
152 m_stressSolveTime = 0;
153 if (m_stressSolver)
154 {
155 Time t;
156 m_stressSolver->update(m_settings.stressDamageEnabled);
157 m_stressSolveTime += t.getElapsedSeconds();
158 }
159 PROFILER_END();
160
161 PROFILER_BEGIN("Actor Misc Update");
162 onUpdate();
163 PROFILER_END();
164
165 m_pxFamily->postSplitUpdate();
166}
167
168void BlastFamily::processActorCreated(ExtPxFamily&, ExtPxActor& actor)
169{

Callers 1

AnimateMethod · 0.80

Calls 3

findMethod · 0.80
postSplitUpdateMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected