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

Method destroy

ogsr_engine/xrGame/PHElement.cpp:142–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void CPHElement::destroy()
143{
144 // dJointGroupDestroy(m_saved_contacts);
145 CPHGeometryOwner::destroy();
146 if (m_body) //&&m_body->world
147 {
148 if (m_body->world)
149 m_shell->Island().RemoveBody(m_body);
150 dBodyDestroy(m_body);
151 m_body = NULL;
152 }
153
154 if (m_group)
155 {
156 dGeomDestroy(m_group);
157 m_group = NULL;
158 }
159}
160
161void CPHElement::calculate_it_data(const Fvector& mc, float mas)
162{

Callers

nothing calls this directly

Calls 4

dBodyDestroyFunction · 0.85
dGeomDestroyFunction · 0.85
RemoveBodyMethod · 0.80
destroyFunction · 0.50

Tested by

no test coverage detected