| 134 | } |
| 135 | |
| 136 | void CPhysicItem::create_box_physic_shell() |
| 137 | { |
| 138 | // Physics (Box) |
| 139 | Fobb obb; |
| 140 | Visual()->getVisData().box.get_CD(obb.m_translate, obb.m_halfsize); |
| 141 | obb.m_rotate.identity(); |
| 142 | |
| 143 | // Physics (Elements) |
| 144 | CPhysicsElement* E = P_create_Element(); |
| 145 | R_ASSERT(E); |
| 146 | E->add_Box(obb); |
| 147 | // Physics (Shell) |
| 148 | m_pPhysicsShell = P_create_Shell(); |
| 149 | R_ASSERT(m_pPhysicsShell); |
| 150 | m_pPhysicsShell->add_Element(E); |
| 151 | m_pPhysicsShell->setDensity(2000.f); |
| 152 | } |
| 153 | |
| 154 | void CPhysicItem::create_box2sphere_physic_shell() |
| 155 | { |
nothing calls this directly
no test coverage detected