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

Method OnChangeVisual

ogsr_engine/xrGame/PhysicsShellHolder.cpp:297–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297void CPhysicsShellHolder::OnChangeVisual()
298{
299 inherited::OnChangeVisual();
300 if (0 == renderable.visual)
301 {
302 CCharacterPhysicsSupport* char_support = character_physics_support();
303 if (char_support)
304 char_support->destroy_imotion();
305
306 if (m_pPhysicsShell)
307 m_pPhysicsShell->Deactivate();
308 xr_delete(m_pPhysicsShell);
309 VERIFY(0 == m_pPhysicsShell);
310 }
311}
312
313void CPhysicsShellHolder::UpdateCL()
314{

Callers

nothing calls this directly

Calls 5

OnChangeVisualFunction · 0.85
xr_deleteFunction · 0.85
destroy_imotionMethod · 0.80
DeactivateMethod · 0.45

Tested by

no test coverage detected