Removed artificial Y offset to allow evaluation of more karts.
This commit is contained in:
parent
856eb747b4
commit
171b442ae6
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user