Code cleaning: get rid of unused wheel.rollCenter member.

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@6220 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: fe2c2eaa9e6f02cf472ca017f13e99d449d1e36f
Former-commit-id: 6bc1654ed1c9445d8f4cc08138a4b1d338cf66f8
This commit is contained in:
kakukri 2015-11-13 01:32:27 +00:00
parent 58cda4ffcb
commit 8f7c3a5eb0
2 changed files with 1 additions and 4 deletions

View file

@ -25,7 +25,7 @@ static const char *WheelSect[4] = {SECT_FRNTRGTWHEEL, SECT_FRNTLFTWHEEL, SECT_RE
void SimAxleConfig(tCar *car, int index, tdble weight0)
{
void *hdle = car->params;
tdble rollCenter, x0r, x0l;
tdble x0r, x0l;
tAxle *axle = &(car->axle[index]);
@ -33,8 +33,6 @@ void SimAxleConfig(tCar *car, int index, tdble weight0)
axle->I = GfParmGetNum(hdle, AxleSect[index], PRM_INERTIA, (char*)NULL, 0.15f);
x0r = GfParmGetNum(hdle, WheelSect[index*2], PRM_RIDEHEIGHT, (char*)NULL, 0.20f);
x0l = GfParmGetNum(hdle, WheelSect[index*2+1], PRM_RIDEHEIGHT, (char*)NULL, 0.20f);
rollCenter = GfParmGetNum(hdle, AxleSect[index], PRM_ROLLCENTER, (char*)NULL, 0.15f);
car->wheel[index*2].rollCenter = car->wheel[index*2+1].rollCenter = rollCenter;
if (index == 0) {
SimSuspConfig(hdle, SECT_FRNTARB, &(axle->arbSusp), 0, 0);

View file

@ -60,7 +60,6 @@ typedef struct
tPosd staticPos; /* pos relative to the GC (z is suspension travel at rest) */
/* and angles are camber (ax), caster (ay) and toe (az) */
tdble cosax, sinax;/*cosinus and sinus of relPos.ax*/
tdble rollCenter;
tdble weight0; /* initial weight on this wheel */
tdble tireSpringRate;