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

Method Deactivate

ogsr_engine/xrGame/PHCaptureInit.cpp:326–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326void CPHCapture::Deactivate()
327{
328 Release();
329 // if(m_taget_object&&m_taget_element&&!m_taget_object->getDestroy()&&m_taget_object->m_pPhysicsShell&&m_taget_object->m_pPhysicsShell->isActive())
330 //{
331 // m_taget_element->set_ObjectContactCallback(0);
332
333 //}
334 if (m_character)
335 m_character->SetObjectContactCallback(0);
336 CPHUpdateObject::Deactivate();
337 m_character = NULL;
338 m_taget_object = NULL;
339 m_taget_element = NULL;
340}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected