Saturday, 1 February 2014

Routes, edges, and movement

I created a route construct which holds an ordered collection of directioned edges, which a train can follow. I added mass to the carriages, power to the engine carriage, and interpolated carriages along the route each frame.

I will add more edges to the route as the train moves forwards, and cull old ones, re-jigging the distance travelled to compensate for the offset.

The train now moves, following the track, accelerating, and decelerating! I'll try and get a video up soon...

frame 0

frame 30

frame 60