frier
01-10-2007 15:26:37
I just wanted to make my vehicle have an incremental speed up. Ive read a few examples on how people have done it,
by using Torque Point curves which is just a structure of RPMs and Engine Torque. Then finding the current RPM and Torque value ranges? im still trying to interpret it heres the code:
Howd you guys get incremental speed ups to work? the same sort of way? is there a document i can read to get me up to speed?
Thanks;
FrieR
by using Torque Point curves which is just a structure of RPMs and Engine Torque. Then finding the current RPM and Torque value ranges? im still trying to interpret it heres the code:
Ogre::Real interp = ( (rpm - mTorqueCurve[low].rpm) / (mTorqueCurve[high].rpm - mTorqueCurve[low].rpm) );
Ogre::Real engine_torque = mTorqueCurve[low].torque + ((mTorqueCurve[high].torque - mTorqueCurve[low].torque) * interp);
wheel_torque = engine_torque * mGears[mCurrentGear] ;
Howd you guys get incremental speed ups to work? the same sort of way? is there a document i can read to get me up to speed?
Thanks;
FrieR