From 65fae4e978516dc98486b4c47d2db6e74f6120a8 Mon Sep 17 00:00:00 2001 From: mbjornstk Date: Thu, 19 Mar 2009 18:18:56 +0000 Subject: [PATCH] The toIrrVector in this code block converts coordinates systems, so Y and Z axis must be swaped too. Currently and until further notice: Bullet and Blender use Y forward, Z up. Irrlicht uses Y up, Z forward. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3283 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/karts/kart_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/karts/kart_model.cpp b/src/karts/kart_model.cpp index d66c3b738..77ddc7660 100644 --- a/src/karts/kart_model.cpp +++ b/src/karts/kart_model.cpp @@ -237,7 +237,7 @@ void KartModel::adjustWheels(float rotation, float steer, for(unsigned int i=0; i<4; i++) { core::vector3df pos = m_wheel_graphics_position[i].toIrrVector(); - pos.Z += clamped_suspension[i]; + pos.Y += clamped_suspension[i]; m_wheel_node[i]->setPosition(pos); } m_wheel_node[0]->setRotation(wheel_front);