91 return h0 * p0 + h1 * p1 + h2 * t0 + h3 * t1;
Location on the track in local coordinates.
void TrackGlobal2Local(tTrackSeg *segment, tdble X, tdble Y, tTrkLocPos *p, int type)
tdble TrackHeightG(tTrackSeg *seg, tdble x, tdble y)
void TrackLocal2Global(tTrkLocPos *p, tdble *X, tdble *Y)
float tdble
Floating point type used in TORCS.
The Gaming Framework API.
void TrackSurfaceNormal(tTrkLocPos *p, t3Dd *norm)
Track segment (tTrackSeg) The segments can be straights (type TR_STR): (the track goes from the right...
tdble TrackSpline(tdble p0, tdble p1, tdble t0, tdble t1, tdble t)
Track Structure and Track Loader Module Definition.
tdble TrackHeightL(tTrkLocPos *p)
void TrackSideNormal(tTrackSeg *seg, tdble x, tdble y, int side, t3Dd *norm)