TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
tTrkLocPos Struct Reference

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

#include <track.h>

Collaboration diagram for tTrkLocPos:

Public Attributes

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

Detailed Description

Location on the track in local coordinates.

Definition at line 433 of file track.h.

Member Data Documentation

◆ seg

tTrackSeg* tTrkLocPos::seg

Track segment.

Definition at line 435 of file track.h.

◆ toLeft

tdble tTrkLocPos::toLeft

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

Definition at line 449 of file track.h.

◆ toMiddle

tdble tTrkLocPos::toMiddle

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

Definition at line 448 of file track.h.

◆ toRight

tdble tTrkLocPos::toRight

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

Definition at line 447 of file track.h.

◆ toStart

tdble tTrkLocPos::toStart

Distance to start of segment (or arc if turn)

Definition at line 446 of file track.h.

◆ type

int tTrkLocPos::type

Type of description:

  • TR_LPOS_MAIN
  • TR_LPOS_SEGMENT
  • TR_LPOS_TRACK

Definition at line 436 of file track.h.


The documentation for this struct was generated from the following file:
  • C:/Users/berni/Development/torcs_git/torcs-code/torcs/torcs/src/interfaces/track.h