| 295 | } |
| 296 | |
| 297 | void 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 | |
| 313 | void CPhysicsShellHolder::UpdateCL() |
| 314 | { |
nothing calls this directly
no test coverage detected