testbed/scenes/rope/RopeScene.cpp
void RopeScene::updatePhysics() {

    if (nbIterations < nbTorqueIterations) {
        mBox2->getRigidBody()->applyLocalTorque(rp3d::Vector3(0, 1000, 0));
    }

    nbIterations++;

    SceneDemo::updatePhysics();
}
/// 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 RopeScene::updatePhysics() {
    if (nbIterations < nbTorqueIterations) {
        mBox2->getRigidBody()->applyLocalTorque(rp3d::Vector3(0, 1000, 0));
    }
    nbIterations++;
    SceneDemo::updatePhysics();
}
void RopeScene :: updatePhysics ( ) { if ( nbIterations < nbTorqueIterations ) { mBox2 -> getRigidBody ( ) -> applyLocalTorque ( rp3d :: Vector3 ( 0 , 1000 , 0 ) ) ; } nbIterations ++ ; SceneDemo :: updatePhysics ( ) ; }
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