Improved wheel steering rotation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3277 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
3f633972e2
commit
a8b1598683
@ -229,9 +229,11 @@ void KartModel::adjustWheels(float rotation, float steer,
|
||||
clamped_suspension[i] = ratio*suspension_length;
|
||||
} // for i<4
|
||||
|
||||
core::vector3df wheel_rear (RAD_TO_DEGREE(-rotation), 0, 0);
|
||||
core::vector3df wheel_steer(0, RAD_TO_DEGREE(steer), 0);
|
||||
// core::vector3df wheel_rear (RAD_TO_DEGREE(-rotation), 0, 0);
|
||||
core::vector3df wheel_rear (-rotation, 0, 0);
|
||||
core::vector3df wheel_steer(0, -steer, 0);
|
||||
core::vector3df wheel_front = wheel_rear+wheel_steer;
|
||||
|
||||
for(unsigned int i=0; i<4; i++)
|
||||
{
|
||||
core::vector3df pos = m_wheel_graphics_position[i].toIrrVector();
|
||||
|
Loading…
Reference in New Issue
Block a user