//Prosessi kone (*) pElement = XMLNode-> FirstChildElement ("kone"); kun taas (pElement) {processPlane (pElement, pNode); pElement = pElement-> NextSiblingElement ("kone"); }
//Menetelmä userDataReference (?) PElement = XMLNode-> FirstChildElement ("userDataReference"); jos (pElement) processUserDataReference (pElement, pNode);}
mitätöidä DotSceneLoader :: processLookTarget (TiXmlElement * XMLNode, SceneNode * pParent) {//! todo Onko tämä oikein? Koska en ole aavistustakaan todella
//prosessin ominaisuuksien String nodename = getAttrib (XMLNode "nodename");
Solmu :: TransformSpace relativeTo = Solmu :: TS_PARENT; String sValue = getAttrib (XMLNode, "relativeTo"); jos (sValue == "paikallinen") relativeTo = Solmu :: TS_LOCAL; if (sValue == "emo") relativeTo = Solmu :: TS_PARENT; if (sValue == "maailma") relativeTo = Solmu :: TS_WORLD;
TiXmlElement * pElement;
//Prosessi kanta (?) Vektori3 asennossa; pElement = XMLNode-> FirstChildElement ("asennossa"); jos (pElement) asento = parseVector3 (pElement);
//Prosessi localDirection (?) Vektori3 localDirection = Vektori3 :: NEGATIVE_UNIT_Z; pElement = XMLNode-> FirstChildElement ("localDirection"); jos (pElement) localDirection = parseVector3 (pElement);
//Setup ilmeen tavoite try {jos (! nodeName.
empty ()) {SceneNode * pLookNode = mSceneMgr-> getSceneNode (nodename); asento = pLookNode -> _ getDerivedPosition (); }
PParent-> lookAt (asema, relativeTo, localDirection); } Catch (Ogre :: Poikkeus & /* e * /) {LogManager :: getSingleton (). LogMessage ("[DotSceneLoader] Virhe käsiteltäessä ilme kohde!"); }}
Mitätöidä DotSceneLoader :: processTrackTarget (TiXmlElement * XMLNode, SceneNode * pParent) {//prosessin ominaisuuksien String nodename = getAttrib (XMLNode "nodename");
TiXmlElement * pElement;
//Prosessi localDirection (?) Vektori3 localDirection = Vektori3 :: NEGATIVE_UNIT_Z; pElement = XMLNode-> FirstChildElement ("localDirection"); jos (pElement) localDirection = parseVector3 (pElement);
//Prosessi offset (?) Vektori3 offset = Vektori3 :: ZERO; pElement = XMLNode-> FirstChildElement ("offset"); jos (pElement) offset = parseVector3 (pElement);
//Setup raita tavoite try {SceneNode * pTrackNode = mSceneMgr-> getSceneNode (nodename); pParent-> setAutoTracking (tot