Changeset 595
- Timestamp:
- Dec 17, 2007, 9:23:52 PM (17 years ago)
- Location:
- code/branches/FICN
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/bin/levels/sample.oxw
r593 r595 34 34 <BaseEntity name="TheShip" src="assf2.mesh" node="ShipNode" /> 35 35 36 <SceneNode name="ShipNode2" pos="200,0,500" scale="10,10,10" yaw="-90" pitch="-90" /> 37 <BaseEntity name="TheShip2" src="assf2.mesh" node="ShipNode2" /> 38 39 <SceneNode name="ShipNode3" pos="-200,0,500" scale="10,10,10" yaw="-90" pitch="-90" /> 40 <BaseEntity name="TheShip3" src="assf2.mesh" node="ShipNode3" /> 36 <Model position="200,0,500" scale="10" mesh="assf2.mesh" yaw="-90" pitch="-90" /> 37 <Model position="-200,0,500" scale="10" mesh="assf2.mesh" yaw="-90" pitch="-90" /> 41 38 42 39 <Model position="0,2000,0" scale="40" mesh="ast1.mesh" /> -
code/branches/FICN/src/orxonox/objects/WorldEntity.cc
r589 r595 107 107 } 108 108 109 if (xmlElem->Attribute("yaw") || xmlElem->Attribute("pitch") || xmlElem->Attribute("roll")) 110 { 111 float yaw = 0.0, pitch = 0.0, roll = 0.0; 112 if (xmlElem->Attribute("yaw")) 113 String2Number<float>(yaw,xmlElem->Attribute("yaw")); 114 115 if (xmlElem->Attribute("pitch")) 116 String2Number<float>(pitch,xmlElem->Attribute("pitch")); 117 118 if (xmlElem->Attribute("roll")) 119 String2Number<float>(roll,xmlElem->Attribute("roll")); 120 121 this->yaw(Degree(yaw)); 122 this->pitch(Degree(pitch)); 123 this->roll(Degree(roll)); 124 } 125 109 126 if (xmlElem->Attribute("scale")) 110 127 {
Note: See TracChangeset
for help on using the changeset viewer.