| 140 | } |
| 141 | |
| 142 | void 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 | |
| 161 | void CPHElement::calculate_it_data(const Fvector& mc, float mas) |
| 162 | { |
nothing calls this directly
no test coverage detected