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

Method SetRemoved

ogsr_engine/xrGame/CharacterPhysicsSupport.cpp:111–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109};
110
111void CCharacterPhysicsSupport::SetRemoved()
112{
113 m_eState = esRemoved;
114 if (m_flags.test(fl_skeleton_in_shell)) // b_skeleton_in_shell
115 {
116 if (m_pPhysicsShell->isEnabled())
117 {
118 m_EntityAlife.processing_deactivate();
119 }
120 m_pPhysicsShell->Deactivate();
121 xr_delete(m_pPhysicsShell);
122 }
123 else
124 {
125 if (m_physics_skeleton)
126 m_physics_skeleton->Deactivate();
127 xr_delete(m_physics_skeleton);
128 m_EntityAlife.processing_deactivate();
129 }
130}
131
132void CCharacterPhysicsSupport::in_Load(LPCSTR section)
133{

Callers 1

PhysicallyRemoveSelfMethod · 0.80

Calls 5

xr_deleteFunction · 0.85
testMethod · 0.45
isEnabledMethod · 0.45
processing_deactivateMethod · 0.45
DeactivateMethod · 0.45

Tested by

no test coverage detected