testbed/src/SceneDemo.cpp
void SceneDemo::updateSnapshotContactPoints() {

    // Remove the previous contact points
    removeAllVisualContactPoints();

    // For each contact point
    std::vector<SceneContactPoint>::const_iterator it;
    for (it = mSnapshotsContactPoints.begin(); it != mSnapshotsContactPoints.end(); ++it) {

        // Create a visual contact point for rendering
        VisualContactPoint* point = new VisualContactPoint(it->point, it->point + it->normal, it->color);
        mVisualContactPoints.push_back(point);
    }
}
// Gather and create snapshots contact points
Gather and create snapshots contact points
Gather and create snapshots contact points
void SceneDemo::updateSnapshotContactPoints() {
    removeAllVisualContactPoints();
    std::vector<SceneContactPoint>::const_iterator it;
    for (it = mSnapshotsContactPoints.begin(); it != mSnapshotsContactPoints.end(); ++it) {
        VisualContactPoint* point = new VisualContactPoint(it->point, it->point + it->normal, it->color);
        mVisualContactPoints.push_back(point);
    }
}
void SceneDemo :: updateSnapshotContactPoints ( ) { removeAllVisualContactPoints ( ) ; std :: vector < SceneContactPoint > :: const_iterator it ; for ( it = mSnapshotsContactPoints . begin ( ) ; it != mSnapshotsContactPoints . end ( ) ; ++ it ) { VisualContactPoint * point = new VisualContactPoint ( it -> point , it -> point + it -> normal , it -> color ) ; mVisualContactPoints . push_back ( point ) ; } }
Gather and create snapshots contact points
Gather and create snapshots contact points
// Remove the previous contact points // For each contact point // Create a visual contact point for rendering