Multitouch Table FH Ingolstadt: Unterschied zwischen den Versionen

}
 
The first step in animation is to get the current position of your component, in our case the HatComponent, which is to be lifted (1). Afterward we use the method tweenTranslateTo to perform a tween translating. Inbetweening†or†tweening†isInbetweening - or tweening - is the process of generating intermediate frames between two images to give the appearance that the first image evolves smoothly into the second image(2). Finally we must add an Animation Listener. In our case, it looks like the following:
 
class LiftAnimationListener implements IAnimationListener{