You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code committed by me now plays the animation all the time but the game moves very slow because of this.
If we want to use animations in what moments we will want to play them?
Here are some code examples on how the animations are used:
//--------------------------------------------------------------
void testApp::mousePressed(int x, int y, int button){
// pause all animations, so we can scrub through them manually.
model.setPausedForAllAnimations(true);
animationPosition = y / (float)ofGetHeight();
bAnimateMouse = true;
}
//--------------------------------------------------------------
void testApp::mouseReleased(int x, int y, int button){
// unpause animations when finished scrubbing.
if(bAnimate) {
model.setPausedForAllAnimations(false);
}
bAnimateMouse = false;
}
//--------------------------------------------------------------
void testApp::update(){
model.update();
if(bAnimateMouse) {
model.setPositionForAllAnimations(animationPosition);
}
mesh = model.getCurrentAnimatedMesh(0);
}
The text was updated successfully, but these errors were encountered:
The code committed by me now plays the animation all the time but the game moves very slow because of this.
If we want to use animations in what moments we will want to play them?
Here are some code examples on how the animations are used:
The text was updated successfully, but these errors were encountered: