| 198 | } |
| 199 | |
| 200 | void CArtefact::UpdateWorkload(u32 dt) |
| 201 | { |
| 202 | VERIFY(!ph_world->Processing()); |
| 203 | // particles - velocity |
| 204 | Fvector vel = {0, 0, 0}; |
| 205 | if (H_Parent()) |
| 206 | { |
| 207 | CPhysicsShellHolder* pPhysicsShellHolder = smart_cast<CPhysicsShellHolder*>(H_Parent()); |
| 208 | if (pPhysicsShellHolder) |
| 209 | pPhysicsShellHolder->PHGetLinearVell(vel); |
| 210 | } |
| 211 | CParticlesPlayer::SetParentVel(vel); |
| 212 | |
| 213 | // |
| 214 | UpdateLights(); |
| 215 | if (m_activationObj) |
| 216 | { |
| 217 | CPHUpdateObject::Activate(); |
| 218 | m_activationObj->UpdateActivation(); |
| 219 | return; |
| 220 | } |
| 221 | |
| 222 | // custom-logic |
| 223 | UpdateCLChild(); |
| 224 | } |
| 225 | |
| 226 | void CArtefact::shedule_Update(u32 dt) |
| 227 | { |
nothing calls this directly
no test coverage detected