Changeset 618 for code/branches/FICN/src/orxonox/objects/SceneNode.cc
- Timestamp:
- Dec 18, 2007, 4:47:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/objects/SceneNode.cc
r616 r618 25 25 void SceneNode::loadParams(TiXmlElement* xmlElem) 26 26 { 27 28 29 27 if (xmlElem->Attribute("name") && xmlElem->Attribute("pos")) 28 { 29 name_ = xmlElem->Attribute("name"); 30 30 31 32 33 34 35 31 std::vector<std::string> pos = tokenize(xmlElem->Attribute("pos"),","); 32 //float x, y, z_; 33 String2Number<float>(x_, pos[0]); 34 String2Number<float>(y_, pos[1]); 35 String2Number<float>(z_, pos[2]); 36 36 37 37 sx_ = 1; sy_ = 1; sz_ = 1; 38 38 if (xmlElem->Attribute("scale")) 39 39 { 40 41 42 43 40 pos = tokenize(xmlElem->Attribute("scale"),","); 41 String2Number<float>(sx_, pos[0]); 42 String2Number<float>(sy_, pos[1]); 43 String2Number<float>(sz_, pos[2]); 44 44 } 45 45 yaw_ = 0.0; … … 67 67 68 68 COUT(4) << "Loader: loaded node "<< name_ <<" : "<< x_ <<" " << y_ << " " << z_ << std::endl << std::endl; 69 69 } 70 70 } 71 71
Note: See TracChangeset
for help on using the changeset viewer.