TORCS  1.3.9
The Open Racing Car Simulator
tTrkLocPos Struct Reference

Location on the track in local coordinates. More...

#include <track.h>

Collaboration diagram for tTrkLocPos:

Public Attributes

tTrackSegseg
 Track segment. More...
 
int type
 Type of description: More...
 
tdble toStart
 Distance to start of segment (or arc if turn) More...
 
tdble toRight
 Distance (+ to left, - to right) relative to the right side of segment. More...
 
tdble toMiddle
 Distance (+ to left, - to right) relative to the middle of segment. More...
 
tdble toLeft
 Distance (- to left, + to right) relative to left side of segment. More...
 

Detailed Description

Location on the track in local coordinates.

Definition at line 418 of file track.h.

Member Data Documentation

◆ seg

tTrackSeg* tTrkLocPos::seg

Track segment.

Definition at line 420 of file track.h.

◆ toLeft

tdble tTrkLocPos::toLeft

Distance (- to left, + to right) relative to left side of segment.

Definition at line 434 of file track.h.

◆ toMiddle

tdble tTrkLocPos::toMiddle

Distance (+ to left, - to right) relative to the middle of segment.

Definition at line 433 of file track.h.

◆ toRight

tdble tTrkLocPos::toRight

Distance (+ to left, - to right) relative to the right side of segment.

Definition at line 432 of file track.h.

◆ toStart

tdble tTrkLocPos::toStart

Distance to start of segment (or arc if turn)

Definition at line 431 of file track.h.

◆ type

int tTrkLocPos::type

Type of description:

  • TR_LPOS_MAIN
  • TR_LPOS_SEGMENT
  • TR_LPOS_TRACK

Definition at line 421 of file track.h.


The documentation for this struct was generated from the following file: