Track segment (tTrackSeg) The segments can be straights (type TR_STR): (the track goes from the right to the left) More...
#include <track.h>

Public Attributes | |
| const char * | name |
| Segment name. More... | |
| int | id |
| Segment number. More... | |
| int | type |
| Geometrical type: More... | |
| int | type2 |
| Position type: More... | |
| int | style |
| Border and barrier segments style: More... | |
| tdble | length |
| Length in meters of the middle of the track. More... | |
| tdble | width |
| Width of the segment (if constant width) More... | |
| tdble | startWidth |
| Width of the beginning of the segment. More... | |
| tdble | endWidth |
| Width of the end of the segment. More... | |
| tdble | lgfromstart |
| Length of beginning of segment from starting line. More... | |
| tdble | radius |
| Radius in meters of the middle of the track (>0) More... | |
| tdble | radiusr |
| Radius in meters of the right side of the track (>0) More... | |
| tdble | radiusl |
| Radius in meters of the left side of the track (>0) More... | |
| tdble | arc |
| Arc in rad of the curve (>0) More... | |
| t3Dd | center |
| Center of the curve. More... | |
| t3Dd | vertex [4] |
| Coordinates of the 4 corners of the segment. More... | |
| tdble | angle [7] |
| tdble | Kzl |
| tdble | Kzw |
| tdble | Kyl |
| t3Dd | rgtSideNormal |
| int | envIndex |
| tdble | height |
| Max height for curbs. More... | |
| unsigned int | raceInfo |
| Type of segment regarding the race: Mask value in: More... | |
| tdble | DoVfactor |
| tSegExt * | ext |
| tTrackSurface * | surface |
| Segment surface. More... | |
| tTrackBarrier * | barrier [2] |
| Segment barriers. More... | |
| tRoadCam * | cam |
| struct trackSeg * | next |
| Next segment. More... | |
| struct trackSeg * | prev |
| Previous segment. More... | |
| union { | |
| struct { | |
| struct trackSeg * rside | |
| struct trackSeg * lside | |
| } | |
| struct trackSeg * side [2] | |
| }; | |
Track segment (tTrackSeg) The segments can be straights (type TR_STR): (the track goes from the right to the left)
Or can be turn segments (type TR_RGT or TR_LFT): (the track goes from the left to the right)
The reference angle is the orientation of the first segment of the track.
| union { ... } |
| tTrackBarrier* trackSeg::barrier[2] |
| tdble trackSeg::length |
| tdble trackSeg::lgfromstart |
| unsigned int trackSeg::raceInfo |
| tdble trackSeg::radius |
| tdble trackSeg::radiusl |
| tdble trackSeg::radiusr |
| tdble trackSeg::startWidth |
| int trackSeg::style |
| tTrackSurface* trackSeg::surface |
| int trackSeg::type2 |
| t3Dd trackSeg::vertex[4] |
| tdble trackSeg::width |