TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
collide.cpp File Reference
#include "sim.h"
Include dependency graph for collide.cpp:

Go to the source code of this file.

Macros

#define CAR_DAMMAGE   0.1

Functions

void SimCarCollideZ (tCar *car)
void SimCarCollideXYScene (tCar *car)
static void SimCarCollideResponse (void *, DtObjectRef obj1, DtObjectRef obj2, const DtCollData *collData)
static void SimCarWallCollideResponse (void *clientdata, DtObjectRef obj1, DtObjectRef obj2, const DtCollData *collData)
void SimCollideRemoveCar (tCar *car, int nbcars)
void SimCarCollideShutdown (int nbcars)
static tTrackSeg * getFirstWallStart (tTrackSeg *start, int side)
void buildWalls (tTrackSeg *start, int side)
void SimCarCollideConfig (tCar *car, tTrack *track)
void SimCarCollideInit (tTrack *track)
void SimCarCollideCars (tSituation *s)

Variables

const tdble BorderFriction = 0.0f
static DtShapeRef fixedobjects [100]
static unsigned int fixedid

Macro Definition Documentation

◆ CAR_DAMMAGE

#define CAR_DAMMAGE   0.1

Definition at line 22 of file collide.cpp.

Function Documentation

◆ buildWalls()

void buildWalls ( tTrackSeg * start,
int side )

Definition at line 583 of file collide.cpp.

Here is the call graph for this function:

◆ getFirstWallStart()

tTrackSeg * getFirstWallStart ( tTrackSeg * start,
int side )
static

Definition at line 548 of file collide.cpp.

◆ SimCarCollideCars()

void SimCarCollideCars ( tSituation * s)

Definition at line 748 of file collide.cpp.

Here is the call graph for this function:

◆ SimCarCollideConfig()

void SimCarCollideConfig ( tCar * car,
tTrack * track )

Definition at line 700 of file collide.cpp.

Here is the call graph for this function:

◆ SimCarCollideInit()

void SimCarCollideInit ( tTrack * track)

Definition at line 720 of file collide.cpp.

Here is the call graph for this function:

◆ SimCarCollideResponse()

void SimCarCollideResponse ( void * ,
DtObjectRef obj1,
DtObjectRef obj2,
const DtCollData * collData )
static

Definition at line 195 of file collide.cpp.

Here is the call graph for this function:

◆ SimCarCollideShutdown()

void SimCarCollideShutdown ( int nbcars)

Definition at line 522 of file collide.cpp.

Here is the call graph for this function:

◆ SimCarCollideXYScene()

void SimCarCollideXYScene ( tCar * car)

Definition at line 101 of file collide.cpp.

Here is the call graph for this function:

◆ SimCarCollideZ()

void SimCarCollideZ ( tCar * car)

Definition at line 25 of file collide.cpp.

Here is the call graph for this function:

◆ SimCarWallCollideResponse()

void SimCarWallCollideResponse ( void * clientdata,
DtObjectRef obj1,
DtObjectRef obj2,
const DtCollData * collData )
static

Definition at line 376 of file collide.cpp.

Here is the call graph for this function:

◆ SimCollideRemoveCar()

void SimCollideRemoveCar ( tCar * car,
int nbcars )

Definition at line 496 of file collide.cpp.

Here is the call graph for this function:

Variable Documentation

◆ BorderFriction

const tdble BorderFriction = 0.0f

Definition at line 95 of file collide.cpp.

◆ fixedid

unsigned int fixedid
static

Definition at line 519 of file collide.cpp.

◆ fixedobjects

DtShapeRef fixedobjects[100]
static

Definition at line 517 of file collide.cpp.