diff --git a/src/karts/kart.cpp b/src/karts/kart.cpp index 577f75b8e..c5aa2b865 100644 --- a/src/karts/kart.cpp +++ b/src/karts/kart.cpp @@ -612,14 +612,14 @@ void Kart::createPhysics() if(f<0) { const Vec3 cs = getKartProperties()->getGravityCenterShift(); - wheel_pos[index].setX(x*0.5f*getKartWidth()+cs.getX()); - float radius = getKartProperties()->getWheelRadius(); - // Set the connection point so that a maximum compressed wheel - // (susp. length=0) will still poke a little bit out under the - // kart - wheel_pos[index].setY(radius - 0.05f); - wheel_pos[index].setZ((0.5f*getKartLength() - radius)* z - + cs.getZ()); + wheel_pos[index].setX(x*0.5f*getKartWidth()+cs.getX()); + float radius = getKartProperties()->getWheelRadius(); + // Set the connection point so that a maximum compressed wheel + // (susp. length=0) will still poke a little bit out under the + // kart + wheel_pos[index].setY(radius - 0.05f); + wheel_pos[index].setZ((0.5f*getKartLength() - radius)* z + + cs.getZ()); } else