thanks Hapax for your time
I think "curve" here refers to the curvature of the road, rather than an interpolation curve.
sorry, i'm not so familiar with mathematics terminology, whats the difference between the curvature of the road and an interpolation curve. i have read other tutorial now regrading mode 7, it explain the mathematics under hood this kind of game. it seems this subject is away complicated more it looks.
To change the way the track is drawn based on the where the car is, you could try:
1) offsetting (horizontal) positions before projection (if you're projecting depth), or
2) offsetting all position by a set amount (or just moving the view for the track).
i believe this what update() is doing. it advances the camera view position by certain amount it either moves forward (vertically) or moves aside (horizontally). before the projection. the projection is the final step before drawing it in screen.
The easing part of that tutorial is about transition from straight road to fully cornered road.
yes .. you are absolutely right. i figured it out after posting my question.
The code line in your original post is to determine the player's horizontal position on the road.
here where i'm stuck now. when i added this code line to update() function it start jarring and it won't do what it supposes to do. in javascript every thing works fine but in c++ all sorts of abnormality are happening every time.