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

Method PhysicallyRemoveSelf

ogsr_engine/xrGame/PHDestroyable.cpp:102–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void 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
122void CPHDestroyable::PhysicallyRemovePart(CPHDestroyableNotificate* dn)
123{

Callers 1

destroy_objectMethod · 0.80

Calls 7

SetRemovedMethod · 0.80
DisableCollisionMethod · 0.80
PPhysicsShellHolderFunction · 0.70
DisableMethod · 0.45
setVisibleMethod · 0.45
setEnabledMethod · 0.45

Tested by

no test coverage detected