Small hack to avoid steer vibrations
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1208 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
5fd54e18ea
commit
67a4c5a4a1
@ -277,6 +277,9 @@ void DefaultRobot::handle_steering()
|
||||
#endif
|
||||
|
||||
}
|
||||
// avoid steer vibrations
|
||||
if (fabsf(steer_angle) < 2.0f)
|
||||
steer_angle = 0.f;
|
||||
|
||||
m_controls.lr = angle_to_control( steer_angle );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user