MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / UpdateWorkload

Method UpdateWorkload

ogsr_engine/xrGame/Artifact.cpp:200–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void 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
226void CArtefact::shedule_Update(u32 dt)
227{

Callers

nothing calls this directly

Calls 3

H_ParentFunction · 0.85
UpdateActivationMethod · 0.80
PHGetLinearVellMethod · 0.45

Tested by

no test coverage detected