Incremental Car Movement and Gear Boxs?!

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:

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

BloodyFanatic

13-10-2007 15:25:39

look at the physx "raycast car" sample, it helped me a lot in the past :wink:

frier

23-10-2007 01:52:28

hi bloodyFanatic,

i just went looking for that example but it doesn't seem to exist, well not anymore, i can see in some other tutorials it talking about the "RayCast Car" tutorial but i cant see it anywhere :(

BloodyFanatic

23-10-2007 08:46:10

hmm, if you have a new version of the ageia physx sdk, it must be located here:
..\SDK\v2.7.2\Samples\SampleRaycastCar\src

in version 2.7.0 the path is similar

maybe you couldn't find it because it's not a tutorial but a sample ;)