| 616 | } |
| 617 | |
| 618 | void SceneDemo::removeAllVisualContactPoints() { |
| 619 | |
| 620 | // Destroy all the visual contact points |
| 621 | for (std::vector<VisualContactPoint*>::iterator it = mVisualContactPoints.begin(); |
| 622 | it != mVisualContactPoints.end(); ++it) { |
| 623 | delete (*it); |
| 624 | } |
| 625 | mVisualContactPoints.clear(); |
| 626 | } |
| 627 | |
| 628 | // Called when the user is moving a body with the mouse |
| 629 | void SceneDemo::moveBodyWithMouse(double mousePosX, double mousePosY) { |