set_motion(_name){
if (this.motion_name == _name){ return; }
this.motion_name = _name;
this.motion_time = Date.now();
//get motion object
var motion = this.get_motion_obj_from_name(this.motion_name);
//get translate amount
this.motion_translate = motion.translate;
//get clip
var clip = motion.anim;
//get action (animation)
var action = this.mixer.clipAction( clip );
console.log("action,");
console.log(action);
if(this.current_action){
this.current_action.fadeOut(0.2);
}
//this.mixer.stopAllAction();
action.reset();
action.fadeIn(0.2);
action.play();
//action.time = 0.1; //hmm doesn't do anything
this.current_action = action;
console.log("Motion set to, "+this.motion_name);
}
Yay, got it. I added fadeOut() and reset() and that fixed it.