Reading the code of the TrackManager, TrackElement, Curve, TrackNode and PilotNode I finally understood how the track works.
The "new" track is somehow different from the original design, but still has a lot in common. Some function will be exactly the same and I think that the TrackElement will have to be used again.
Track is actually a new TrackManager which approaches the problem in another way.
Things the Track has to be able to do:
- addPoints(Vector)
- create the track
- set the speed of the TrackNode
- get the position/orientation on the track after a certain time has elapsed (getPosition(float dt), getDirection(float dt))
I just created the class and was thinking about how the track will be used.
Does the spaceship create it's own track? That'll be stupid. So we have to get the tracks from somewhere and attach the camera, player or enemies to the TrackNode of the track we want them to follow.
Please be free to post any ideas or advices. I also might think into the wrong direction. Please tell me as soon as you can.
BTW: I work in the playability branch because it's connected to michel's project. I don't think I will interfere with his or the weapon brother's work. I've chosen the project also because michel's branch is closest to the vertical scroller view.
Now I go to sleep, tomorrow is implementation day.