Not modelling differentials. I'm calculating the angular velocity of the
wheels thus:
FZ = weight on that wheel (uses weight transfer)
Driven Wheels:
angularAcc = { (totalTorque) / radius} / (FZ/GRAVITY)
where totalTorque = (-resistanceForce * radius) + (engineTorque *
gearboxReduction * radius) + (-brakeForce * radius)
angularVel += angularAcc * deltaTime
Undriven Wheels: I am assuming they are rolling at the same speed of the
car
angularAcc = carAcc
angularVel += angularAcc * deltaTime
However I am not sure how correct this is as there is no reference to how to
calculate angular velocity. And effects like applying brakes should lock
just the driven wheel in this case
(as an undriven wheel doesnt account for brake forces in the above
description, it is just the speed of the car)
, and it does. However, if I release the brake, the wheel should roll again,
but does not take into
account the speed of the car, so it does not roll along, it stays locked.
There is obviously error in the calculation, and I must be missing out some
things.
Using the relaxation length approach to calculating slip ratio, the car
starts and stops, I am assuming (and
hoping) that it is due to a problem with this calculation.
Please help! Thanks! I know I can rely on you guys!