TORCS  1.3.9
The Open Racing Car Simulator
Track Structure

This is the tracks structure definition. More...

Collaboration diagram for Track Structure:

Files

file  track.h
 Track Structure and Track Loader Module Definition.
 

Classes

struct  trackSeg
 Track segment (tTrackSeg) The segments can be straights (type TR_STR): (the track goes from the right to the left) More...
 
struct  tTrack
 Track structure. More...
 

Typedefs

typedef struct trackSeg tTrackSeg
 Track segment (tTrackSeg) The segments can be straights (type TR_STR): (the track goes from the right to the left) More...
 

Detailed Description

This is the tracks structure definition.


tTrack is the main track structure.
trackSeg is the segment structure.

Typedef Documentation

◆ tTrackSeg

typedef struct trackSeg tTrackSeg

Track segment (tTrackSeg) The segments can be straights (type TR_STR): (the track goes from the right to the left)

straight-desc.png

Or can be turn segments (type TR_RGT or TR_LFT): (the track goes from the left to the right)

turn-1-desc.png

The reference angle is the orientation of the first segment of the track.