Removed artificial Y offset to allow evaluation of more karts.

This commit is contained in:
hiker 2014-08-21 09:59:29 +10:00
parent 856eb747b4
commit 171b442ae6
3 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ Shadow::Shadow(video::ITexture *texture, scene::ISceneNode *node,
buffer->recalculateBoundingBox();
m_node = irr_driver->addMesh(m_mesh);
m_node->setPosition(core::vector3df(0, -0.1f, 0));
m_node->setPosition(core::vector3df(0, 0.0f, 0));
#ifdef DEBUG
m_node->setName("shadow");
#endif

View File

@ -2429,7 +2429,7 @@ void Kart::kartIsInRestNow()
f += wi.m_chassisConnectionPointCS.getY()
- wi.m_raycastInfo.m_suspensionLength - wi.m_wheelsRadius;
}
m_graphical_y_offset = f/m_vehicle->getNumWheels() + 0.1f;
m_graphical_y_offset = f/m_vehicle->getNumWheels() + 0.0f;
m_kart_model->setDefaultSuspension();
} // kartIsInRestNow

View File

@ -541,7 +541,7 @@ bool KartModel::loadModels(const KartProperties &kart_properties)
}
}
for(unsigned int i=0; i<4; i++)
m_wheel_graphics_position[i].setY(m_wheel_graphics_position[i].getY()-0.1f);
m_wheel_graphics_position[i].setY(m_wheel_graphics_position[i].getY()-0.0f);
// Load the wheel models. This can't be done early, since the default
// values for the graphical position must be defined, which in turn