Don't overwrite the castering value with the non-castering one. Also,
make the caster-angle-deg a synonym for the steering angle when the wheel is non-castering.
This commit is contained in:
parent
a40cab8321
commit
88a678eb77
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ void Gear::calcForce(RigidBody* body, State *s, float* v, float* rot)
|
|||
return;
|
||||
} else {
|
||||
_rollSpeed = vsteer;
|
||||
_casterAngle = 0;
|
||||
_casterAngle = _rot;
|
||||
}
|
||||
|
||||
float fsteer = _brake * calcFriction(wgt, vsteer);
|
||||
|
|
Loading…
Reference in a new issue