How-To's > How do I move objects along an arbitrary path?
You can animate an object along an arbitrary path that you define. Create a Node object that is animated and a geometric path along which the node moves. Then use the PathTransition class to enable translating.
Examples
- Animating Shapes Along a Path
This sample shows more complex examples of a car running on a racetrack and a boat sailing on waves. - Easy Animations With the Animated Transitions
This article includes a simple example of a path transition. - JavaFX Production Suite Graphics for Developers
This article includes a simple example of a path transition using a node from a JavaFX Production Suite image.
API Documentation
Last Updated: April 2010
[Return to How-To's Home]