Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

How to control playing the seleted animation of a model?

$
0
0

@mustconfident wrote:

I have loaded a dae type model,and the return of getAnimationCount() is 6.It means the model has 6 animation .Now I want to play someone,for example 1 index.In the touchDown(),like this:
void ofApp::touchDown(ofTouchEventArgs & touch){
model.stopAllAnimations();
model.getAnimation(1).play();
}
but it runs same with model.getAnimation(0).play();

void ofApp::touchDown(ofTouchEventArgs & touch){
model.stopAllAnimations();
model.getAnimation(0).play();
}
.So why?Is there something wrong?How to control the seleted animation of a model?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles