Fork me on GitHub
Not signed in (Sign In)

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

  1.  
    Hi guys,

    Just wondering how to correctly implement TweenToCurrentPosition. I'm exploding an image like so...

    explosion = new Explosion(50,new Vector3D(490,200,50),500);
    emitter.addAction( explosion );

    I then want to use TweenToCurrentPosition to bring the pieces back to their original points to form the picture.

    Any ideas??
    • CommentAuthorRichard
    • CommentTimeNov 5th 2011 edited
     
    I created TweenToCurrentPosition with the view to, for example, reforming the image by moving the particles to random positions then tweening them back to where they should be. To do this you would create the particles in their final positions then apply TweenToCurrentPosition to move them all to random positions and tween them back to their correct position, where they were when the action was applied.

    If the particles are already in random positions you will have to create a custom action to do the tween.