/** * creates an animation event * * @param model the model on which the animation will be played * @param animationName the name of the animation to play */ public AnimationEvent(Spatial model, String animationName) { this.model = model; this.modelName = model.getName(); this.animationName = animationName; initialDuration = model.getControl(AnimControl.class).getAnimationLength(animationName); }
/** * creates an animation event * * @param model the model on which the animation will be played * @param animationName the name of the animation to play * @param loopMode the loopMode * @see LoopMode */ public AnimationEvent(Spatial model, String animationName, LoopMode loopMode) { super(loopMode); initialDuration = model.getControl(AnimControl.class).getAnimationLength(animationName); this.model = model; this.modelName = model.getName(); this.animationName = animationName; }
/** * creates an animation event * * @param model the model on which the animation will be played * @param animationName the name of the animation to play * @param channelIndex the index of the channel default is 0. Events on the * same channelIndex will use the same channel. */ public AnimationEvent(Spatial model, String animationName, int channelIndex) { this.model = model; this.modelName = model.getName(); this.animationName = animationName; initialDuration = model.getControl(AnimControl.class).getAnimationLength(animationName); this.channelIndex = channelIndex; }
/** * creates an animation event * * @param model the model on which the animation will be played * @param animationName the name of the animation to play * @param loopMode the loopMode * @see LoopMode * @param blendTime the time during the animation are gonna be blended * @see AnimChannel#setAnim(java.lang.String, float) */ public AnimationEvent(Spatial model, String animationName, LoopMode loopMode, float blendTime) { super(loopMode); initialDuration = model.getControl(AnimControl.class).getAnimationLength(animationName); this.model = model; this.modelName = model.getName(); this.animationName = animationName; this.blendTime = blendTime; }
/** * creates an animation event * * @param model the model on which the animation will be played * @param animationName the name of the animation to play * @param loopMode the loopMode * @see LoopMode * @param channelIndex the index of the channel default is 0. Events on the * same channelIndex will use the same channel. */ public AnimationEvent(Spatial model, String animationName, LoopMode loopMode, int channelIndex) { super(loopMode); initialDuration = model.getControl(AnimControl.class).getAnimationLength(animationName); this.model = model; this.modelName = model.getName(); this.animationName = animationName; this.channelIndex = channelIndex; }
/** * creates an animation event * * @param model the model on which the animation will be played * @param animationName the name of the animation to play * @param channelIndex the index of the channel default is 0. Events on the * @param blendTime the time during the animation are gonna be blended * same channelIndex will use the same channel. */ public AnimationEvent(Spatial model, String animationName, LoopMode loopMode, int channelIndex, float blendTime) { this.model = model; this.modelName = model.getName(); this.animationName = animationName; this.loopMode = loopMode; initialDuration = model.getControl(AnimControl.class).getAnimationLength(animationName); this.channelIndex = channelIndex; this.blendTime = blendTime; }
/** * creates an animation event * * @param model the model on which the animation will be played * @param animationName the name of the animation to play */ public AnimationEvent(Spatial model, String animationName) { this.model = model; this.modelName = model.getName(); this.animationName = animationName; initialDuration = model.getControl(AnimControl.class).getAnimationLength(animationName); }
/** * creates an animation event * * @param model the model on which the animation will be played * @param animationName the name of the animation to play * @param loopMode the loopMode * @see LoopMode */ public AnimationEvent(Spatial model, String animationName, LoopMode loopMode) { super(loopMode); initialDuration = model.getControl(AnimControl.class).getAnimationLength(animationName); this.model = model; this.modelName = model.getName(); this.animationName = animationName; }
/** * creates an animation event * * @param model the model on which the animation will be played * @param animationName the name of the animation to play * @param channelIndex the index of the channel default is 0. Events on the * same channelIndex will use the same channel. */ public AnimationEvent(Spatial model, String animationName, int channelIndex) { this.model = model; this.modelName = model.getName(); this.animationName = animationName; initialDuration = model.getControl(AnimControl.class).getAnimationLength(animationName); this.channelIndex = channelIndex; }
/** * creates an animation event * * @param model the model on which the animation will be played * @param animationName the name of the animation to play * @param loopMode the loopMode * @see LoopMode * @param channelIndex the index of the channel default is 0. Events on the * same channelIndex will use the same channel. */ public AnimationEvent(Spatial model, String animationName, LoopMode loopMode, int channelIndex) { super(loopMode); initialDuration = model.getControl(AnimControl.class).getAnimationLength(animationName); this.model = model; this.modelName = model.getName(); this.animationName = animationName; this.channelIndex = channelIndex; }
/** * creates an animation event * * @param model the model on which the animation will be played * @param animationName the name of the animation to play * @param loopMode the loopMode * @see LoopMode * @param blendTime the time during the animation are gonna be blended * @see AnimChannel#setAnim(java.lang.String, float) */ public AnimationEvent(Spatial model, String animationName, LoopMode loopMode, float blendTime) { super(loopMode); initialDuration = model.getControl(AnimControl.class).getAnimationLength(animationName); this.model = model; this.modelName = model.getName(); this.animationName = animationName; this.blendTime = blendTime; }
/** * creates an animation event * * @param model the model on which the animation will be played * @param animationName the name of the animation to play * @param channelIndex the index of the channel default is 0. Events on the * @param blendTime the time during the animation are gonna be blended * same channelIndex will use the same channel. */ public AnimationEvent(Spatial model, String animationName, LoopMode loopMode, int channelIndex, float blendTime) { this.model = model; this.modelName = model.getName(); this.animationName = animationName; this.loopMode = loopMode; initialDuration = model.getControl(AnimControl.class).getAnimationLength(animationName); this.channelIndex = channelIndex; this.blendTime = blendTime; }