If you just want a flat track it's very simple:
Pseudo codeish thingie:
Pseudo codeish thingie:
Create an empty mesh For every anchor point Position a dummy pivot and align it to the anchor point TFormPoint -1,0,0,dummy pivot,0 Add a vertex at TformedX,Y,Z TFormPoint 1,0,0,dummy pivot,0 Add a vertex at TformedX,Y,Z If anchor point>first add triangles between previous anchor point vertices and this anchor points vertices else if anchor point = last add triangles between the first anchor point vertices and this anchor points vertices end if Next anchor pointThat's it :)