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

    // Clear contacts points
    mSnapshotsContactPoints.clear();

    if (mIsPhysicsWorldSimulated) {

        // Take a simulation step
        mPhysicsWorld->update(mEngineSettings.timeStep.count());
    }
}
// Update the physics world (take a simulation step)
// Can be called several times per frame
Update the physics world (take a simulation step)
Can be called several times per frame
Update the physics world ( take a simulation step ) Can be called several times per frame
void SceneDemo::updatePhysics() {
    mSnapshotsContactPoints.clear();
    if (mIsPhysicsWorldSimulated) {
        mPhysicsWorld->update(mEngineSettings.timeStep.count());
    }
}
void SceneDemo :: updatePhysics ( ) { mSnapshotsContactPoints . clear ( ) ; if ( mIsPhysicsWorldSimulated ) { mPhysicsWorld -> update ( mEngineSettings . timeStep . count ( ) ) ; } }
Update the physics world (take a simulation step)
Can be called several times per frame
Update the physics world ( take a simulation step ) Can be called several times per frame
// Clear contacts points // Take a simulation step