Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 595 for code/branches/FICN/src


Ignore:
Timestamp:
Dec 17, 2007, 9:23:52 PM (17 years ago)
Author:
landauf
Message:

spaceships are now models too (except the steered one)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/objects/WorldEntity.cc

    r589 r595  
    107107        }
    108108
     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
    109126        if (xmlElem->Attribute("scale"))
    110127        {
Note: See TracChangeset for help on using the changeset viewer.