| 148 | } |
| 149 | |
| 150 | virtual void renderScene() |
| 151 | { |
| 152 | CommonRigidBodyBase::renderScene(); |
| 153 | btSoftRigidDynamicsWorld* softWorld = getSoftDynamicsWorld(); |
| 154 | |
| 155 | for (int i = 0; i < softWorld->getSoftBodyArray().size(); i++) |
| 156 | { |
| 157 | btSoftBody* psb = (btSoftBody*)softWorld->getSoftBodyArray()[i]; |
| 158 | //if (softWorld->getDebugDrawer() && !(softWorld->getDebugDrawer()->getDebugMode() & (btIDebugDraw::DBG_DrawWireframe))) |
| 159 | { |
| 160 | btSoftBodyHelpers::DrawFrame(psb, softWorld->getDebugDrawer()); |
| 161 | btSoftBodyHelpers::Draw(psb, softWorld->getDebugDrawer(), softWorld->getDrawFlags()); |
| 162 | } |
| 163 | } |
| 164 | } |
| 165 | }; |
| 166 | |
| 167 | #define MACRO_SOFT_DEMO(a) \ |