Fixed (one) rotation bug: rotation for objects in the xml file are
already degrees, they were converted to degrees again. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6343 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -84,7 +84,9 @@ TrackObject::TrackObject(const XMLNode &xml_node)
|
||||
{
|
||||
}
|
||||
m_animated_node->setPosition(m_init_xyz.toIrrVector());
|
||||
m_animated_node->setRotation(m_init_hpr.toIrrHPR() );
|
||||
// Note that toIrrHPR converts radians to degrees. Since the value
|
||||
// from the xml file is already in degrees, there is no need for that.
|
||||
m_animated_node->setRotation(m_init_hpr.toIrrVector() );
|
||||
m_animated_node->setMaterialFlag(video::EMF_LIGHTING, false);
|
||||
} // TrackObject
|
||||
|
||||
|
||||
Reference in New Issue
Block a user