| 100 | } |
| 101 | |
| 102 | void CPHDestroyable::PhysicallyRemoveSelf() |
| 103 | { |
| 104 | CPhysicsShellHolder* obj = PPhysicsShellHolder(); |
| 105 | |
| 106 | CActor* A = smart_cast<CActor*>(obj); |
| 107 | if (A) |
| 108 | { |
| 109 | A->character_physics_support()->SetRemoved(); |
| 110 | } |
| 111 | else |
| 112 | { |
| 113 | // obj->PPhysicsShell()->PureStep(); |
| 114 | obj->PPhysicsShell()->Disable(); |
| 115 | obj->PPhysicsShell()->DisableCollision(); |
| 116 | } |
| 117 | |
| 118 | obj->setVisible(FALSE); |
| 119 | obj->setEnabled(FALSE); |
| 120 | } |
| 121 | |
| 122 | void CPHDestroyable::PhysicallyRemovePart(CPHDestroyableNotificate* dn) |
| 123 | { |
no test coverage detected