True Axis Physics SDK 1.2.0.1 Beta Documentation
www.trueaxis.com

void TA::CarTemplate::SetGearRatio (
int   nIndex,
float   fGearRatio
[inline]
 

Call this function to set the ratio of a gear. Gear 0 must be reverse. The ratio for reverse must be negative. All the other gear rations must be positive and should decrease with there index. The default number of gears is 7, including reverse. The default gear ratios in order are -2.9f, 2.66f, 1.78f, 1.3f, 1.0f, 0.74f, 0.5f.

Parameters:
nIndex
The index of the gear.
fGearRatio
The new ratio for the gear.
See also:
TA::CarTemplate::GetNumGears, TA::CarTemplate::SetNumGears, TA::CarTemplate::GetGearRatio, TA::CarTemplate::SetDifferentialRatio and TA::CarTemplate::GetDifferentialRatio.



© Copyright 2004-2006 TRUE AXIS PTY LTD Australia. All rights reserved.