torcs - 1.2.2

trackSeg Struct Reference
[Tracks Structure]

#include <track.h>

Collaboration diagram for trackSeg:

Collaboration graph
[legend]
List of all members.

Detailed Description

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.


Public Attributes

char * name
 Segment name.

int id
 Segment number.

int type
 Geometrical type:
  • TR_RGT
  • TR_LFT
  • TR_STR.


int type2
 Position type:
  • TR_MAIN
  • TR_LSIDE
  • TR_RSIDE
  • TR_LBORDER
  • TR_RBORDER.


int style
 Border and barrier segments style:
  • TR_PLAN
  • TR_CURB
  • TR_WALL
  • TR_FENCE
  • TR_PITBUILDING.


tdble length
 Length in meters of the middle of the track.

tdble width
 Width of the segment (if constant width).

tdble startWidth
 Width of the beginning of the segment.

tdble endWidth
 Width of the end of the segment.

tdble lgfromstart
 Length of begining of segment from starting line.

tdble radius
 Radius in meters of the middle of the track (>0).

tdble radiusr
 Radius in meters of the right side of the track (>0).

tdble radiusl
 Radius in meters of the left side of the track (>0).

tdble arc
 Arc in rad of the curve (>0).

t3Dd center
 Center of the curve.

t3Dd vertex [4]
 Coord of the 4 corners of the segment.

tdble angle [7]
tdble Kzl
tdble Kzw
tdble Kyl
t3Dd rgtSideNormal
int envIndex
tdble height
 Max height for curbs.

unsigned int raceInfo
 Type of segment regarding the race:
Mask value in:
  • TR_NORMAL
  • TR_LAST
  • TR_START
  • TR_PITLANE
  • TR_SPEEDLIMIT
  • TR_PITENTRY
  • TR_PITEXIT
  • TR_PIT.


tdble DoVfactor
tSegExtext
tTrackSurfacesurface
 Segment surface.

tTrackBarrierbarrier [2]
 Segment barriers.

tRoadCamcam
trackSegnext
 Next segment.

trackSegprev
 Previous segment.

trackSeglside
 Segment on the left.

trackSegrside
 Segment on the right.


Member Data Documentation

tdble trackSeg::angle[7]
 

tdble trackSeg::arc
 

Arc in rad of the curve (>0).

tTrackBarrier* trackSeg::barrier[2]
 

Segment barriers.

tRoadCam* trackSeg::cam
 

t3Dd trackSeg::center
 

Center of the curve.

tdble trackSeg::DoVfactor
 

tdble trackSeg::endWidth
 

Width of the end of the segment.

int trackSeg::envIndex
 

tSegExt* trackSeg::ext
 

tdble trackSeg::height
 

Max height for curbs.

int trackSeg::id
 

Segment number.

tdble trackSeg::Kyl
 

tdble trackSeg::Kzl
 

tdble trackSeg::Kzw
 

tdble trackSeg::length
 

Length in meters of the middle of the track.

tdble trackSeg::lgfromstart
 

Length of begining of segment from starting line.

struct trackSeg* trackSeg::lside
 

Segment on the left.

char* trackSeg::name
 

Segment name.

struct trackSeg* trackSeg::next
 

Next segment.

struct trackSeg* trackSeg::prev
 

Previous segment.

unsigned int trackSeg::raceInfo
 

Type of segment regarding the race:
Mask value in:

  • TR_NORMAL
  • TR_LAST
  • TR_START
  • TR_PITLANE
  • TR_SPEEDLIMIT
  • TR_PITENTRY
  • TR_PITEXIT
  • TR_PIT.

tdble trackSeg::radius
 

Radius in meters of the middle of the track (>0).

tdble trackSeg::radiusl
 

Radius in meters of the left side of the track (>0).

tdble trackSeg::radiusr
 

Radius in meters of the right side of the track (>0).

t3Dd trackSeg::rgtSideNormal
 

struct trackSeg* trackSeg::rside
 

Segment on the right.

tdble trackSeg::startWidth
 

Width of the beginning of the segment.

int trackSeg::style
 

Border and barrier segments style:

  • TR_PLAN
  • TR_CURB
  • TR_WALL
  • TR_FENCE
  • TR_PITBUILDING.

tTrackSurface* trackSeg::surface
 

Segment surface.

int trackSeg::type
 

Geometrical type:

  • TR_RGT
  • TR_LFT
  • TR_STR.

int trackSeg::type2
 

Position type:

  • TR_MAIN
  • TR_LSIDE
  • TR_RSIDE
  • TR_LBORDER
  • TR_RBORDER.

t3Dd trackSeg::vertex[4]
 

Coord of the 4 corners of the segment.


Index in:

  • TR_SL
  • TR_SL
  • TR_EL
  • TR_ER

tdble trackSeg::width
 

Width of the segment (if constant width).


The documentation for this struct was generated from the following file:
Generated at Thu Feb 26 21:54:16 2004 for torcs by doxygen 1.3.3 written by Dimitri van Heesch, © 1997-1999
TORCS © Eric Espié 1999, 2002.