| 133 | } |
| 134 | |
| 135 | void 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 | |
| 168 | void BlastFamily::processActorCreated(ExtPxFamily&, ExtPxActor& actor) |
| 169 | { |
no test coverage detected