32 car->
aero.
SCx2 = 0.645f * Cx * FrntArea;
43 tdble yaw, otherYaw, airSpeed, tmpas, spdang, tmpsdpang, dyaw;
52 if (airSpeed > 10.0f) {
53 for (i = 0; i < s->_ncars; i++) {
63 dyaw = yaw - otherYaw;
66 if ((otherCar->
DynGC.
vel.
x > 10.0f) && (fabs(dyaw) < 0.1396f)) {
67 if (fabs(tmpsdpang) > 2.9671f) {
74 }
else if (fabs(tmpsdpang) < 0.1396f) {
90 if (car->
speed > 1.0f) {
103 hm = 2.0f * (
tdble) exp(-3.0f*hm);
122 wing->
Kx = -1.23f * area;
123 wing->
Kz = 4.0f * wing->
Kx;
159 wing->
forces.
z = wing->
Kz * vt2 * sinaoa;
cars situation used to inform the GUI and the drivers
bool SimAdjustPitCarSetupParam(tCarPitSetupValue *v)
#define SIGN(x)
Sign of the expression.
#define DIST(x1, y1, x2, y2)
Distance between two points.
static const char * WingSect[2]
void SimAeroUpdate(tCar *car, tSituation *s)
float tdble
Floating point type used in TORCS.
void SimWingConfig(tCar *car, int index)
#define SECT_AERODYNAMICS
tCarPitSetupValue wingangle[2]
void SimAeroConfig(tCar *car)
tdble GfParmGetNum(void *handle, const char *path, const char *key, const char *unit, tdble deflt)
Get a numerical parameter from the parameter set handle.
tdble az
angle along z axis
void SimWingReConfig(tCar *car, int index)
#define NORM_PI_PI(x)
Angle normalization between -PI and PI.
void SimWingUpdate(tCar *car, int index, tSituation *s)