Article Preview
Buy Now
COLUMN
Path Animation
Tell your Object3Ds where to go!
Issue: 3.1 (September/October 2004)
Author: Joe Nastasi
Author Bio: Joe Nastasi is the president of Pyramid Design, a software development firm and the developers of A-OK! The Wings of Mercury and FTP Suite.
Article Description: No description available.
Article Length (in bytes): 10,848
Starting Page Number: 38
Article Number: 3118
Resource File(s):
3118.zip Updated: 2013-03-11 19:07:58
Related Link(s): None
Excerpt of article text...
This issue, we take a detailed look at the code used for our Path Animation library.
Waypoint Class
The code in the Waypoint class is, for the most part, getter and setter methods to access the various parameters. The possible exception is the handling of the waypoint's finite states. There are four: wpStart, wpTurn, wpMove, and wpDone. Internally, the states are represented by integer values: 0, 1, 2, and 3, respectively. This allows the NextState method to change states simply by incrementing the waypoint's State property.
Sub NextState()
...End of Excerpt. Please purchase the magazine to read the full article.