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

Method PhysicallyRemovePart

ogsr_engine/xrGame/PHDestroyable.cpp:122–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void CPHDestroyable::PhysicallyRemovePart(CPHDestroyableNotificate* dn)
123{
124 CPhysicsShellHolder* sh = dn->PPhysicsShellHolder();
125 CPhysicsShell* s = sh->PPhysicsShell();
126 sh->setVisible(FALSE);
127 sh->setEnabled(FALSE);
128 s->Disable();
129 s->DisableCollision();
130}
131
132void CPHDestroyable::Destroy(u16 source_id /*=u16(-1)*/, LPCSTR section /*="ph_skeleton_object"*/)
133{

Callers

nothing calls this directly

Calls 5

DisableCollisionMethod · 0.80
PPhysicsShellHolderMethod · 0.45
setVisibleMethod · 0.45
setEnabledMethod · 0.45
DisableMethod · 0.45

Tested by

no test coverage detected