TORCS  1.3.9
The Open Racing Car Simulator
tPublicCar Struct Reference

Public info on the cars. More...

#include <car.h>

Collaboration diagram for tPublicCar:

Public Attributes

tDynPt DynGC
 GC data (car axis) More...
 
tDynPt DynGCg
 GC data (world axis) More...
 
tdble speed
 
sgMat4 posMat
 position matrix More...
 
tTrkLocPos trkPos
 current track position. More...
 
int state
 state of the car. More...
 
tPosd corner [4]
 

Detailed Description

Public info on the cars.

Definition at line 191 of file car.h.

Member Data Documentation

◆ corner

tPosd tPublicCar::corner[4]

Definition at line 222 of file car.h.

◆ DynGC

tDynPt tPublicCar::DynGC

GC data (car axis)

Definition at line 192 of file car.h.

◆ DynGCg

tDynPt tPublicCar::DynGCg

GC data (world axis)

Definition at line 193 of file car.h.

◆ posMat

sgMat4 tPublicCar::posMat

position matrix

Definition at line 195 of file car.h.

◆ speed

tdble tPublicCar::speed

Definition at line 194 of file car.h.

◆ state

int tPublicCar::state

state of the car.


The states are:

  • RM_CAR_STATE_FINISH
  • RM_CAR_STATE_PIT
  • RM_CAR_STATE_DNF
  • RM_CAR_STATE_PULLUP
  • RM_CAR_STATE_PULLSIDE
  • RM_CAR_STATE_PULLDN
  • RM_CAR_STATE_OUT
  • RM_CAR_STATE_NO_SIMU
  • RM_CAR_STATE_BROKEN
  • RM_CAR_STATE_OUTOFGAS

Definition at line 197 of file car.h.

◆ trkPos

tTrkLocPos tPublicCar::trkPos

current track position.

The segment is the track segment (not sides)

Definition at line 196 of file car.h.


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