Bob
27-10-2009 14:35:14
Hi,
I'm working on a car project.
I've implemented the Engine like in Stundplayground.
I calculate the rpm:
and then the wheel torque
I call this in the cars callback.
But in higher gears the car gets slower instead of faster I looked trought the Stundplayground source code
many times but coun't find any differences to my code.
I hope someone can help me I've found something in this Forum too but it was just the same formula.
I've forgot I'm using NewtonSdk 1.5.3
I'm working on a car project.
I've implemented the Engine like in Stundplayground.
I calculate the rpm:
wheelRotationRate * mpGearRatios[mCurrentGear] *
mDifferentialRatio * (60.0f / (2.0f * Ogre::Math::PI));
and then the wheel torque
torque = throttle * lookupTorqueCurve(mRpm) *mpGearRatios[mCurrentGear] * mDifferentialRatio;
I call this in the cars callback.
But in higher gears the car gets slower instead of faster I looked trought the Stundplayground source code
many times but coun't find any differences to my code.
I hope someone can help me I've found something in this Forum too but it was just the same formula.
I've forgot I'm using NewtonSdk 1.5.3